CDI Extension for JPA query utilities
Java XSLT
Permalink
Failed to load latest commit information.
api [maven-release-plugin] prepare for next development iteration Jan 21, 2013
dist [maven-release-plugin] prepare for next development iteration Feb 10, 2012
docs Small rewrites. Jan 21, 2013
faces [maven-release-plugin] prepare for next development iteration Jan 21, 2013
impl Interceptor method signature and upgrade to last Solder version. Fixes Jun 17, 2013
.gitignore
README.md Code markdown fix Jun 8, 2012
pom.xml

README.md

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);

}