Holon Platform JPA Datastore - QueryDSL integration
Latest release: 5.5.0
This module provides a set of QueryDSL integration features for the Holon Platform JPA Datastore module.
The main feature provided is the QueryDsl
Datastore commodity, automatically registered with the JPA Datastore when this module is available in classpath.
The QueryDsl
commodity provides methods to create JPA QueryDSL queries which allow to mix QueryDSL expressions and predicates with standard platform query expressions, such as QueryFilter
, QuerySort
and QueryAggregation
.
Example:
Datastore datastore = getDatastore(); // build or obtain a JPA Datastore
QueryDsl queryDslCommodity = datastore.create(QueryDsl.class); // get the QueryDsl commodity
JpaQuery<?> query = queryDslCommodity.selectFrom(QTest.test); // build a QueryDSL query
query.where(QTest.test.id.gt(0)); // QueryDSL predicate
query.filter(NAME.startsWith("a")); // Holon platform Property QueryFilter
query.fetch();
Furthermore, this module provides integration classes to use QueryDSL expressions as Datastore expressions (such as EntityPath
and Path
QueryDSL types) and some Spring Boot starters for QueryDSL integration auto-configuration.
See the module reference guide for detailed information.
Code structure
See Holon Platform code structure and conventions to learn about the "real Java API" philosophy with which the project codebase is developed and organized.
Getting started
System requirements
The Holon Platform is built using Java 8, so you need a JRE/JDK version 8 or above to use the platform artifacts.
QueryDSL JPA version 4.x.x is required.
Releases
See releases for the available releases. Each release tag provides a link to the closed issues.
Obtain the artifacts
The Holon Platform is open source and licensed under the Apache 2.0 license. All the artifacts (including binaries, sources and javadocs) are available from the Maven Central repository.
The Maven group id for this module is com.holon-platform.jpa
and a BOM (Bill of Materials) is provided to obtain the module artifacts:
Maven BOM:
<dependencyManagement>
<dependency>
<groupId>com.holon-platform.jpa</groupId>
<artifactId>holon-datastore-jpa-querydsl-bom</artifactId>
<version>5.5.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencyManagement>
See the Artifacts list for a list of the available artifacts of this module.
Using the Platform BOM
The Holon Platform provides an overall Maven BOM (Bill of Materials) to easily obtain all the available platform artifacts:
Platform Maven BOM:
<dependencyManagement>
<dependency>
<groupId>com.holon-platform</groupId>
<artifactId>bom</artifactId>
<version>${platform-version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencyManagement>
See the Artifacts list for a list of the available artifacts of this module.
Build from sources
You can build the sources using Maven (version 3.3.x or above is recommended) like this:
mvn clean install
Getting help
-
Check the platform documentation or the specific module documentation.
-
Ask a question on Stack Overflow. We monitor the
holon-platform
tag. -
Report an issue.
-
A commercial support is available too.
Examples
See the Holon Platform examples repository for a set of example projects.
Contribute
See Contributing to the Holon Platform.
Join the contribute Gitter room for any question and to contact us.
License
All the Holon Platform modules are Open Source software released under the Apache 2.0 license.
Artifacts list
Maven group id: com.holon-platform.jpa
Artifact id | Description |
---|---|
holon-datastore-jpa-querydsl |
JPA Datastore QueryDSL integration |
holon-starter-jpa-querydsl-hibernate |
Spring Boot starter for JPA stack and Datastore auto-configuration with QueryDSL integration using Hibernate ORM |
holon-starter-jpa-querydsl-eclipselink |
Spring Boot starter for JPA stack and Datastore auto-configuration with QueryDSL integration using EclipseLink ORM |
holon-datastore-jpa-querydsl-bom |
Bill Of Materials |
documentation-datastore-jpa-querydsl |
Documentation |