-->
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.  [ 2 posts ] 
Author Message
 Post subject: Foreign key in one table has multiple parents
PostPosted: Tue Apr 13, 2004 9:53 am 
Beginner
Beginner

Joined: Fri Feb 27, 2004 11:47 am
Posts: 24
I have a table called "TEST" which has column "Sample_ID" , and it can take values (ID's) from three tables "MATERIAL", "APPLIANCE", "PRODUCT", I have concrete class for all the tables, I used many to many relationship it didn't work. I know that a foreign key cannot have multiple parent key, is there any trick in hibernate where I can specify relationship in xml file, so that Sample_ID can take ID values from 3 concrete class.

_________________
Web Developer


Top
 Profile  
 
 Post subject: error using <any
PostPosted: Tue Apr 13, 2004 2:44 pm 
Beginner
Beginner

Joined: Fri Feb 27, 2004 11:47 am
Posts: 24
To solve the above problem I used <any name="propertyType"> but Iam getting error element type <meta value > must be declared

_________________
Web Developer


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.