Skip to content
This repository

CDI Extension for JPA query utilities

branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 api
Octocat-spinner-32 dist
Octocat-spinner-32 docs
Octocat-spinner-32 faces
Octocat-spinner-32 impl
Octocat-spinner-32 .gitignore
Octocat-spinner-32 pom.xml

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

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

    Person findByFullName(String firstName, String lastName);

Something went wrong with that request. Please try again.