[jboss-user] [EJB 3.0] - Re: InheritanceType JOINED stategy problem

grdzeli_kaci do-not-reply at jboss.com
Wed Mar 14 04:12:59 EDT 2007


"rajeshv7" wrote : I think you have mixed up the 'SINGLE_TABLE' and 'JOINED' Inheritance strategies. The Discriminator's are specified only in the 'SINGLE_TABLE'  strategy. And in the 'Joined'  since all the subclasses have their own tables there is no need for a discriminator column.

you are not right! 

The Discriminator's are not specified only in the 'SINGLE_TABLE' strategy. it is possible to use into join strategy.

i have book "Pro EJB3 Java Persistence API" (Mike Keith and Merrick Schincariol)
http://www.amazon.com/Pro-EJB-Java-Persistence-API/dp/1590596455

on page 249 is defined joined strategy and tehere is data model in example Employee, FullTimeEmployee,PartTimeEmployee and ContractEmployee using Joined Strategy.


  find out here Example 1-74
http://www.oracle.com/technology/products/ias/toplink/jpa/resources/toplink-jpa-annotations.html


Is There any idea ?

I can't resolve this problem




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

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



More information about the jboss-user mailing list