Appearance
Configure Projection Engine
The projection module supports JPA Criteria and Querydsl for building dynamic queries.
Select an Engine
Choose the implementation by setting crudcraft.projection.engine
in your application configuration. The default is CRITERIA
.
yaml
crudcraft:
projection:
engine: QUERYDSL
Add Dependencies
When using Querydsl, include the Querydsl JPA libraries and generated Q-types on the classpath.
Switching Engines
The property can be changed at runtime without altering your code. CrudCraft adapts its query building to the selected engine.