CDI Query Module

The Parent for the CDI Query Module

Лицензия

Лицензия

Группа

Группа

com.ctp.cdi.query
Идентификатор

Идентификатор

cdi-query-parent
Последняя версия

Последняя версия

1.0.0.Alpha5
Дата

Дата

Тип

Тип

pom
Описание

Описание

CDI Query Module
The Parent for the CDI Query Module
Система контроля версий

Система контроля версий

https://github.com/ctpconsulting/query

Скачать cdi-query-parent

Имя Файла Размер
cdi-query-parent-1.0.0.Alpha5.pom 14 KB
Обзор

Как подключить последнюю версию

<!-- 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"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

  • 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

Версии библиотеки

Версия
1.0.0.Alpha5
1.0.0.Alpha4
1.0.0.Alpha3
1.0.0.Alpha2
1.0.0.Alpha1