-->
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: Many-to-one Relationship Discriminator?
PostPosted: Tue Feb 13, 2007 9:10 pm 
Beginner
Beginner

Joined: Tue Jun 07, 2005 8:24 am
Posts: 33
Location: Cincinnati, OH
Is there a way to tell Hibernate to put an extra column in for a many-to-one relationship to tell it exactly what table to query for the associated object? We are using a table-per-concrete-class table structure in our database and I have an entity class that has a many-to-one relationship with a class high up in the inheritance tree. I don't want hibernate to try to query all of the tables that could possibly contain one of those types. I want it to go to the right table immediately when I try to traverse the relationship. Basically what I want is for it to do what it does when you use an <any> mapping. Does this make sense?

Hibernate version: 3.2.1ga


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.