Class SimpleEntityPathResolver
java.lang.Object
org.springframework.data.querydsl.SimpleEntityPathResolver
- All Implemented Interfaces:
EntityPathResolver
Simple implementation of
EntityPathResolver to lookup a query class by reflection and using the static field
of the same type.- Author:
- Oliver Gierke, Jens Schauder
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSimpleEntityPathResolver(String querySuffix) Creates a newSimpleEntityPathResolverwith the given query package suffix. -
Method Summary
Modifier and TypeMethodDescription<T> com.querydsl.core.types.EntityPath<T> createPath(Class<T> domainClass) Creates anEntityPathinstance for the given domain class.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
SimpleEntityPathResolver
Creates a newSimpleEntityPathResolverwith the given query package suffix.- Parameters:
querySuffix- must not be null.
-
-
Method Details
-
createPath
Creates anEntityPathinstance for the given domain class. Tries to lookup a class matching the naming convention (prepend Q to the simple name of the class, same package) and find a static field of the same type in it.- Specified by:
createPathin interfaceEntityPathResolver- Parameters:
domainClass-- Returns:
-