CDI Query Reference Guide

The Parent for the CDI Query Module

License

License

Categories

Categories

IDE Development Tools GUI User Interface
GroupId

GroupId

com.ctp.cdi.query
ArtifactId

ArtifactId

cdi-query-reference-guide
Last Version

Last Version

1.0.0.Alpha3
Release Date

Release Date

Type

Type

jdocbook
Description

Description

CDI Query Reference Guide
The Parent for the CDI Query Module
Project Organization

Project Organization

Seam Framework

Download cdi-query-reference-guide

Dependencies

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

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