| I have the following model : 
 
 class hibernateobject {
 .....
 }
 
 class businessobject extends hibernateobject {
 .....
 }
 
 class businessobjectSpecific extends businessobject {
 .....
 }
 
 
 For the 3 classes, I need the 3 same mappings files (except for the class name, i set polymorphism=explicit).
 I can't use the subclass clause because I don't have a discriminator and for our application we need the 3 classes.
 
 Is there any way to specify the mapping or how can i tell to hibernate to use the same persister for the 3 classes ?
 
 What about the performance issue by multiplying by 3 the numbers of mapping files (except at the start of Hibernate) ?
 
 I specify one mapping file (the Hibernate Object one) and I modify the methods getPersister in SessionfactoryImpl (loop -> getSubclass). This work perfectly for session.save, session.load, but this solution is too ugly (Performance ?, specific hibernate version....)
 
 Thanks,
 Stephane
 
 
 |