forked from ctpconsulting/query
-
Notifications
You must be signed in to change notification settings - Fork 0
CDI Extension for JPA query utilities
leandroaparecido/query
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
CDI Query ========= CDI Query is a CDI extension which allows creating JPA queries based on method names or method annotations. For a more detailed introduction into the extension, just have a look at the project website at http://ctpconsulting.github.com/query ### Code Sample public interface PersonDao extends EntityDao<Person, Long> { List<Person> findByAgeBetweenAndGender(int minAge, int maxAge, Gender gender); @Query("select p from Person p where p.ssn = ?1") Person findBySSN(String ssn); @Query(named=Person.BY_FULL_NAME) Person findByFullName(String firstName, String lastName); }
About
CDI Extension for JPA query utilities
Resources
Stars
Watchers
Forks
Packages 0
No packages published
Languages
- Java 100.0%