Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rintu3 #13

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,15 @@ public String scheduleJob(

return "Job is scheduled.";
}
public String updateJobInfo(){
return null;
}
public String fetchjobInfo(){

return null;
}
public String fetchJobById(){

return null;
}
}
13 changes: 13 additions & 0 deletions spring-data-jpa-mysql/src/main/java/com/mkyong/BookRepository.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,17 @@ public interface BookRepository extends CrudRepository<Book, Long> {

List<Book> findByName(String name);

List<Book> findById(int id);

List<Book> findByPrice(int price);

List<Book> deleteById(int id);

List<Book> findByIdAndName(int id,String name);

List<Book> fetchById(int id);

List<Book> findByUnAndPwd(String un,String pwd);


}
6 changes: 6 additions & 0 deletions spring-data-jpa/src/main/java/com/mkyong/BookRepository.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,11 @@
public interface BookRepository extends CrudRepository<Book, Long> {

List<Book> findByName(String name);

public <User> fetchByName(String name);

public <User> fetchById(int id);

public <User> fetchJobById(int id);

}