-->
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.  [ 20 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: Fri Mar 12, 2004 12:36 am 
Beginner
Beginner

Joined: Wed Mar 03, 2004 6:02 am
Posts: 46
Location: Kuala Lumpur, Malaysia
David,

OK. I had a baptism of fire of sorts after thinking about the problem with composite keys.
Anyway the solution was to assign surrogate PKs to all entities. That way, I don't need composite keys (ever) and all relations between entities are 1-1, 1-n and n-m (less often).

Thanks for enlightening me.

Alistair


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 12, 2004 3:16 am 
Hibernate Team
Hibernate Team

Joined: Thu Dec 18, 2003 9:55 am
Posts: 1977
Location: France
i have tested again exactly the same code without equals & hashcode :
it does not work....
just take my code


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 12, 2004 9:56 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Its been interesting running with two threads during this topic. Glad I was able to help you Alistair and thanks to Delpouve for confirming the XDoclet detail.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 13, 2004 5:47 am 
Hibernate Team
Hibernate Team

Joined: Thu Dec 18, 2003 9:55 am
Posts: 1977
Location: France
thank you David ;)


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 14, 2004 1:49 pm 
Hibernate Team
Hibernate Team

Joined: Thu Dec 18, 2003 9:55 am
Posts: 1977
Location: France
i've post another problem here:
http://forum.hibernate.org/viewtopic.php?p=2194805

excuse me, i hit the wrong forum :(


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 20 posts ]  Go to page Previous  1, 2

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.