Example usage for org.springframework.data.jpa.repository.support Querydsl Querydsl

List of usage examples for org.springframework.data.jpa.repository.support Querydsl Querydsl

Introduction

In this page you can find the example usage for org.springframework.data.jpa.repository.support Querydsl Querydsl.

Prototype

public Querydsl(EntityManager em, PathBuilder<?> builder) 

Source Link

Document

Creates a new Querydsl for the given EntityManager and PathBuilder .

Usage

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);
}