-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: onetoone with referencedColumnName, weird SQL
PostPosted: Fri May 07, 2010 12:17 pm 
Regular
Regular

Joined: Thu Dec 10, 2009 10:53 am
Posts: 50
Please take a look at the SQL created; it works but seems partly redundant:

Code:
[DEBUG,SQL] /* load org.hibernate.test.annotations.onetoone.referencedcolumnname.H */ select
        h0_.id as id0_2_,
        h0_.objId as objId0_2_,
        h0_.value as value0_2_,
        hi1_.id as id1_0_,
        hi1_.objIdH as objIdH1_0_,
        h2_.id as id0_1_,
        h2_.objId as objId0_1_,
        h2_.value as value0_1_
    from
        H h0_
    left outer join
        HI hi1_
            on h0_.objId=hi1_.objIdH
    left outer join
        H h2_
            on hi1_.objIdH=h2_.objId
    where
        h0_.objId=?


annotated H-Pojo: http://paste.org/pastebin/view/18210
annotated HI-Pojo: http://paste.org/pastebin/view/18211
Testcase: http://paste.org/pastebin/view/18213


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.