[jboss-user] [EJB 3.0] - Re: Anyone have SINGLE_TABLE Entity inheritance working?

Wolfgang Knauf do-not-reply at jboss.com
Thu Jan 17 10:28:27 EST 2008


Try to remove the discrimator columns in your entity bean. 

You will only need this on your base class bean:
@Entity
  | @Inheritance(strategy=InheritanceType.SINGLE_TABLE)

In your subclasses, you need this:
@Entity
  | @DiscriminatorValue(value="blahblah")

If this simple approach is running, you should try to add a property for the column once again.

Wolfgang

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

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



More information about the jboss-user mailing list