Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- Spring
- spring transaction
- COC
- jstl
- rember me
- custom filter
- guvnor
- Hudson
- zabbix
- Drools Fusion
- querydsl
- drools
- JBoss Seam
- jquery serialize
- JPA
- java tip
- spring jpa
- jenkins
- @SqlResultSetMapping
- gwt
- SVN
- spring security
- bootstrap jquery datepicker
- gwt-ext
- maven
- CEP
- GEventEvaluator
- MySQL
- ibatis
- jquery
Archives
- Today
- Total
목록@SqlResultSetMapping (1)
봉 블로그
Spring JPA 에서 POJO 사용하기
Spring JPA 를 사용하면서 특정 Entity 와는 다른 데이타(field 조합)를 쿼리할경우가 있다.또는Entity 의 특정 field 만 쿼리할경우는 아래와 같이 하면 된다. ----------- 아래는 Entity class 를 사용하는경우 ---------@Repositorypublic interface BoardRepository extends JpaRepository, JpaSpecificationExecutor { @Query(value = "SELECT new Board(b.id, b.subject, b.userId, b.createDt) FROM Board b")Page findList(Pageable pageable);} ----------- 아래는 POJO class 를 사용하는..
java
2016. 9. 22. 17:26