[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - JPA : inheritance using joined strategy and discriminator co

ephemeris-lappis do-not-reply at jboss.com
Tue Jul 17 14:28:14 EDT 2007


Hello.

I was testing a simple inheritance case (a base class, Animal, and two subclasses, Cat and Fish), using the 'joined' strategy... I've tried to configure a discriminator column on the base class, and distinct discriminator values on the subclasses, but it seems that Hibernate doesn't uses them. In fact, if i understand what the logged SQL statements show, it seems that the type is infered from the join clauses and the 'case when...' tests...

Could someone confirm that for this strategy the descriminator is not required ?

Thanks.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065108#4065108

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065108



More information about the jboss-user mailing list