BBS > spring

hinbernate Criteria join

작성자 : 이창우 (x1wins) | 등록일 : 2012-05-07 | 목록
첨부 파일이 없습니다.
첨부 이미지가 없습니다.
첨부 코드가 없습니다.
DetachedCriteria paging
http://forum.springsource.org/showthread.php?70893-How-to-use-hibernateTemplate-to-get-records-starting-from-row-10
List<Bbs> list = getHibernateTemplate().findByCriteria(detachedCriteria, startRow, perPage);

join
DetachedCriteria detachedCriteria = DetachedCriteria.forClass(Bbs.class, "B");

// Criteria criteria = createCriteria(Bbs.class, "B");
detachedCriteria.createCriteria("config", "C");
detachedCriteria.add(Restrictions.eq("C.bbsnum", bbsnum)).addOrder(Order.desc("B.num"));



http://blog.naver.com/PostView.nhn?blogId=raiyung&logNo=150007849823&parentCategoryNo=9&viewDate=¤tPage=1&listtype=0
로그인 하셔야 댓글을 사용하실수 있습니다.
댓글쓰기를 누르면 로그인 페이지로 이동 후 돌아옵니다.
총 댓글 겟수 4
이창우(x1wins) | 2012-05-11
Hibernate: select this_.rnum as rnum6_3_, this_.content as content6_3_, this_.ip as ip6_3_, this_.regdate as regdate6_3_, this_.status as status6_3_, this_1_.num as num7_3_, this_2_.num as num8_3_, b1_.num as num0_0_, b1_.content as content0_0_, b1_.count as count0_0_, b1_.ip as ip0_0_, b1_.regdate as regdate0_0_, b1_.status as status0_0_, b1_.subject as subject0_0_, b1_.userid as userid0_0_, b1_1_.bbsnum as bbsnum1_0_, config4_.bbsnum as bbsnum2_1_, config4_.bbsname as bbsname2_1_, config4_.listTypeNum as listType3_2_1_, config4_.publicYn as publicYn2_1_, config4_.readFrom as readFrom2_1_, config4_.readUntil as readUntil2_1_, config4_.replyYn as replyYn2_1_, config4_.userid as userid2_1_, config4_.writeFrom as writeFrom2_1_, config4_.writeUntil as writeUntil2_1_, user5_.num as num9_2_, user5_.content as content9_2_, user5_.content_type as content3_9_2_, user5_.email as email9_2_, user5_.filename as filename9_2_, user5_.filenum as filenum9_2_, user5_.level as level9_2_, user5_.name as name9_2_, user5_.password as password9_2_, user5_.phone as phone9_2_, user5_.regdate as regdate9_2_, user5_.status as status9_2_, user5_.userid as userid9_2_ from reply this_ left outer join bbs_reply this_1_ on this_.rnum=this_1_.rnum left outer join reply_user this_2_ on this_.rnum=this_2_.rnum inner join bbs b1_ on this_1_.num=b1_.num left outer join bbs_config b1_1_ on b1_.num=b1_1_.num left outer join config config4_ on b1_1_.bbsnum=config4_.bbsnum left outer join user user5_ on this_2_.num=user5_.num where b1_.num=? order by this_.rnum desc
이창우(x1wins) | 2012-05-09
http://www.mkyong.com/hibernate/hibernate-cascade-example-save-update-delete-and-delete-orphan/
이창우(x1wins) | 2012-05-07
http://www.javalobby.org/java/forums/t63849.html
이창우(x1wins) | 2012-05-07
http://ddakker.tistory.com/166
번호 제목 등록일 작성자 조회수
634 하이버네이트 no session (0) 2013-08-04 이창우 1548
631 hibernate join example (0) 2013-07-05 이창우 1578
630 hibernate 추론성 제거 (0) 2013-07-03 이창우 1456
629 http 406 에러 (0) 2013-07-02 이창우 4457
628 spring 3.2 에러 (0) 2013-07-02 이창우 1294
626 spring long-polling chat (0) 2013-06-25 이창우 10187
621 hibernate order (0) 2013-05-03 이창우 1509
593 자주 쓰게 될 pom? (0) 2012-11-29 이창우 1441
592 spring data (0) 2012-11-29 이창우 1465
566 hibernate 1:n duplicates (0) 2012-08-22 이창우 1761
565 hibernate no session (1) 2012-08-08 이창우 1791
562 maven tool.jar (0) 2012-08-02 이창우 1938
561 hibernate 정보 모음 (0) 2012-08-01 이창우 2563
556 메이븐 프로젝트 웹프로젝트로 시작하기 (0) 2012-07-17 이창우 1725
555 @ResponseBody sample (0) 2012-07-15 이창우 2744
549 comet with spring (0) 2012-07-05 이창우 1886
-> hinbernate Criteria join (4) 2012-05-07 이창우 2430
525 properties 이클립스 한글 (0) 2012-04-29 이창우 2131
524 jsonview xml (1) 2012-04-29 이창우 2985
523 error (0) 2012-04-25 이창우 1811
< 1 2 3 >
글쓰기 검색