public class SimpleEntityPathResolver extends Object implements EntityPathResolver
EntityPathResolver
to lookup a query class by reflection and using the static field
of the same type.Modifier and Type | Field and Description |
---|---|
static SimpleEntityPathResolver |
INSTANCE |
Constructor and Description |
---|
SimpleEntityPathResolver(String querySuffix)
Creates a new
SimpleEntityPathResolver with the given query package suffix. |
Modifier and Type | Method and Description |
---|---|
<T> com.querydsl.core.types.EntityPath<T> |
createPath(Class<T> domainClass)
Creates an
EntityPath instance for the given domain class. |
public static final SimpleEntityPathResolver INSTANCE
public SimpleEntityPathResolver(String querySuffix)
SimpleEntityPathResolver
with the given query package suffix.querySuffix
- must not be null.public <T> com.querydsl.core.types.EntityPath<T> createPath(Class<T> domainClass)
EntityPath
instance 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.createPath
in interface EntityPathResolver
domainClass
- Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.