-->
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.  [ 6 posts ] 
Author Message
 Post subject: XOR Constraint
PostPosted: Tue Nov 16, 2004 1:30 pm 
Newbie

Joined: Wed Sep 22, 2004 10:20 am
Posts: 8
do you know if it is possible to map a xor contraint with Hibernate?
if yes can you explain how?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 16, 2004 1:31 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
What is an XOR constraint?

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 16, 2004 1:39 pm 
Newbie

Joined: Wed Sep 22, 2004 10:20 am
Posts: 8
it is an association with two Class with a condition so if the condition is true the association is with the first class and if the condition is false with the second one.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 16, 2004 1:41 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
So its at the normal Java level, not a database constraint? Or do you not mean "constraint", but "view"? If Java can do it, Hibernate can do it. If its a view, your database can do it. There are several extension points in Hibernate for custom behavior as well.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 16, 2004 1:45 pm 
Newbie

Joined: Wed Sep 22, 2004 10:20 am
Posts: 8
I think that it is at uml level. you can see an example at
http://www.essentialstrategies.com/publ ... ng/uml.htm


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 16, 2004 1:47 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Uhm, so you didn't think about the physical implementation of nice pictures so far? :)

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


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

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.