| 
							
					| 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
 
 
 |  |