CDI Query Module

The Parent for the CDI Query Module

License

License

GroupId

GroupId

com.ctp.cdi.query
ArtifactId

ArtifactId

cdi-query-parent
Last Version

Last Version

1.0.0.Alpha5
Release Date

Release Date

Type

Type

pom
Description

Description

CDI Query Module
The Parent for the CDI Query Module
Source Code Management

Source Code Management

https://github.com/ctpconsulting/query

Download cdi-query-parent

How to add to project

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

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

  • api
  • impl
  • faces

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
1.0.0.Alpha3
1.0.0.Alpha2
1.0.0.Alpha1