Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
th-app-java
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Oscar Enrique Gonzalez Escurra
th-app-java
Commits
070e0053
Commit
070e0053
authored
Feb 02, 2023
by
Oscar Gonzalez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
se agrega BirthdayRepository
parent
bb1b1108
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
curriculumsearch/src/main/java/com/roshka/repositorio/BirthdayRepository.java
+18
-0
No files found.
curriculumsearch/src/main/java/com/roshka/repositorio/BirthdayRepository.java
0 → 100644
View file @
070e0053
package
com
.
roshka
.
repositorio
;
import
com.roshka.modelo.Birthday
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.Query
;
public
interface
BirthdayRepository
extends
JpaRepository
<
Birthday
,
Long
>
{
public
Page
<
Birthday
>
findByNombreCompletoContainingIgnoreCase
(
String
nombre
,
Pageable
pageable
);
public
boolean
existsByNombreCompletoIgnoreCase
(
String
nombre
);
@Query
(
value
=
"SELECT * FROM cumpleanos"
,
nativeQuery
=
true
)
public
Page
<
Birthday
>
findAllBirthday
(
Pageable
pageable
);
}
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