CDI Query Faces

The Parent for the CDI Query Module

License

License

GroupId

GroupId

com.ctp.cdi.query
ArtifactId

ArtifactId

cdi-query-faces
Last Version

Last Version

1.0.0.Alpha5
Release Date

Release Date

Type

Type

jar
Description

Description

CDI Query Faces
The Parent for the CDI Query Module

Download cdi-query-faces

How to add to project

<!-- https://jarcasting.com/artifacts/com.ctp.cdi.query/cdi-query-faces/ -->
<dependency>
    <groupId>com.ctp.cdi.query</groupId>
    <artifactId>cdi-query-faces</artifactId>
    <version>1.0.0.Alpha5</version>
</dependency>
// https://jarcasting.com/artifacts/com.ctp.cdi.query/cdi-query-faces/
implementation 'com.ctp.cdi.query:cdi-query-faces:1.0.0.Alpha5'
// https://jarcasting.com/artifacts/com.ctp.cdi.query/cdi-query-faces/
implementation ("com.ctp.cdi.query:cdi-query-faces:1.0.0.Alpha5")
'com.ctp.cdi.query:cdi-query-faces:jar:1.0.0.Alpha5'
<dependency org="com.ctp.cdi.query" name="cdi-query-faces" rev="1.0.0.Alpha5">
  <artifact name="cdi-query-faces" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.ctp.cdi.query', module='cdi-query-faces', version='1.0.0.Alpha5')
)
libraryDependencies += "com.ctp.cdi.query" % "cdi-query-faces" % "1.0.0.Alpha5"
[com.ctp.cdi.query/cdi-query-faces "1.0.0.Alpha5"]

Dependencies

compile (1)

Group / Artifact Type Version
com.ctp.cdi.query : cdi-query-api jar 1.0.0.Alpha5

provided (3)

Group / Artifact Type Version
javax.enterprise : cdi-api jar
org.jboss.spec.javax.faces : jboss-jsf-api_2.0_spec jar
org.jboss.spec.javax.annotation : jboss-annotations-api_1.1_spec jar

Project Modules

There are no modules declared in this project.

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

}
com.ctp.cdi.query

Cambridge Technology Partners

Versions

Version
1.0.0.Alpha5
1.0.0.Alpha4