Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
E
ECommerceSystem
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
1516160
ECommerceSystem
Commits
0cf44bcd
Commit
0cf44bcd
authored
Aug 04, 2023
by
1516160
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upload New File
parent
b59ffaec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
ProductRepo.java
...ayground/candidate/assessment/repository/ProductRepo.java
+17
-0
No files found.
src/main/java/com/altimetrik/playground/candidate/assessment/repository/ProductRepo.java
0 → 100644
View file @
0cf44bcd
package
com
.
altimetrik
.
playground
.
candidate
.
assessment
.
repository
;
import
java.util.List
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.Query
;
import
org.springframework.stereotype.Repository
;
import
com.altimetrik.playground.candidate.assessment.entity.Product
;
@Repository
public
interface
ProductRepo
extends
JpaRepository
<
Product
,
Integer
>
{
@Query
(
value
=
"select distinct p from Product p where p.prodname like '%?1%' order by p.price"
,
nativeQuery
=
false
)
List
<
Product
>
getProduct
(
String
prodName
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment