0 Replies Latest reply on Jul 17, 2007 2:28 PM by Ephemeris Lappis

    JPA : inheritance using joined strategy and discriminator co

    Ephemeris Lappis Newbie

      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.