# spring-jpa-querydsl-sample **Repository Path**: mirrors_andyglick/spring-jpa-querydsl-sample ## Basic Information - **Project Name**: spring-jpa-querydsl-sample - **Description**: spring-jpa-querydsl-sample (join and paging) - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-24 - **Last Updated**: 2026-02-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## Description This is sample code with spring-jpa-querydsl. It has two types of @Query(@NamedQuery) and QueryDsl (inner join and paging). #### @Query(@NamedQuery) ```bash // Using @Query example. (Actual using @NamedQuery in {@link com.boot.jpa.domain.User}) @Query(value = "select new com.boot.jpa.vo.ResultVO(" + "u.userNo," + "u.type," + "ui.email) " + "from User u inner join u.userInfo ui " + "where u.type = :type" ) ``` #### QueryDsl ```bash JPAQuery query = new JPAQuery(entityManager); query.from(qUser) .innerJoin(qUser.userInfo, qUserInfo) .where(qUser.type.eq(User.USER_TYPE.USER)) .list(Projections.bean(ResultVO.class, qUser.userNo, qUser.type, qUserInfo.email )); ``` ## Run ```bash mvn test ```