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 |
Tags
- gwt-ext
- maven
- jenkins
- custom filter
- JPA
- gwt
- rember me
- zabbix
- Drools Fusion
- drools
- CEP
- ibatis
- spring security
- jstl
- Hudson
- Spring
- querydsl
- @SqlResultSetMapping
- GEventEvaluator
- JBoss Seam
- spring jpa
- jquery
- java tip
- COC
- guvnor
- bootstrap jquery datepicker
- SVN
- jquery serialize
- MySQL
- spring transaction
Archives
- Today
- Total
목록spring jpa (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