List of usage examples for org.springframework.data.querydsl SimpleEntityPathResolver INSTANCE
SimpleEntityPathResolver INSTANCE
To view the source code for org.springframework.data.querydsl SimpleEntityPathResolver INSTANCE.
Click Source Link
From source file:com.wiiyaya.framework.provider.repository.BaseDaoImpl.java
public BaseDaoImpl(JpaEntityInformation<T, ID> entityInformation, EntityManager entityManager) { super(entityInformation, entityManager); this.path = SimpleEntityPathResolver.INSTANCE.createPath(entityInformation.getJavaType()); this.builder = new PathBuilder<T>(path.getType(), path.getMetadata()); this.querydsl = new Querydsl(entityManager, builder); }
From source file:org.springframework.data.document.mongodb.repository.QueryDslMongoRepository.java
/** * Creates a new {@link QueryDslMongoRepository} for the given * {@link EntityMetadata} and {@link MongoTemplate}. Uses the * {@link SimpleEntityPathResolver} to create an {@link EntityPath} for the * given domain class.// ww w.j a va 2 s . c o m * * @param entityInformation * @param template */ public QueryDslMongoRepository(MongoEntityInformation<T, ID> entityInformation, MongoTemplate template) { this(entityInformation, template, SimpleEntityPathResolver.INSTANCE); }
From source file:org.springframework.data.mongodb.repository.support.QueryDslMongoRepository.java
/** * Creates a new {@link QueryDslMongoRepository} for the given {@link EntityMetadata} and {@link MongoTemplate}. Uses * the {@link SimpleEntityPathResolver} to create an {@link EntityPath} for the given domain class. * //from w ww. j a v a 2 s. c om * @param entityInformation * @param template */ public QueryDslMongoRepository(MongoEntityInformation<T, ID> entityInformation, MongoOperations mongoOperations) { this(entityInformation, mongoOperations, SimpleEntityPathResolver.INSTANCE); }