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: Disable constraint generated by @ManyToOne
PostPosted: Mon Jul 24, 2006 12:22 pm 
Beginner
Beginner

Joined: Mon Mar 14, 2005 4:16 pm
Posts: 27
I am using the latest versions from hibernate and annotations. Is there any way to disable the creation of the constraint generated in the database by a @ManyToOne annotation? I have a table wich has a "parentId" field which can point to two different tables. This table has a discriminator too, which I use to identify the parent table. When generating the schema, a constraint is generated, which enforces that the parentId must exist in the two tables.. any way to overcome that?

Thanks!!

Bruno


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.