Package com.mysema.query.jpa.impl

Examples of com.mysema.query.jpa.impl.JPAQuery


 
  private static final QUser qUser = QUser.user;
 
  @Override
  public List<User> listFollowers(Artifact artifact) {
    JPAQuery query = new JPAQuery(getEntityManager());
   
    query.from(qUser)
      .where(qUser.followedArtifacts.any().artifact.eq(artifact));
   
    return query.list(qUser);
  }
View Full Code Here


        emp.setName("Sunghyouk Bae");
        emp.setEmpNo("21011");
        emp = employeeRepository.save(emp);

        QEmployee $ = QEmployee.employee;
        JPAQuery query = new JPAQuery(em);

        Employee loaded = query.from($)
                               .where($.empNo.eq("21011"))
                               .uniqueResult($);

        assertThat(loaded).isNotNull();
        assertThat(loaded.getEmpNo()).isEqualTo(emp.getEmpNo());
View Full Code Here

public class QueryDslSupportHandler<E> extends AbstractDelegateQueryHandler<E>
        implements QueryDslSupport {

    @Override
    public JPAQuery jpaQuery() {
        return new JPAQuery(getEntityManager());
    }
View Full Code Here

TOP

Related Classes of com.mysema.query.jpa.impl.JPAQuery

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.