[jboss-user] [EJB 3.0] - Re: @embedable annotation

Wolfgang Knauf do-not-reply at jboss.com
Tue Mar 10 08:31:55 EDT 2009


Hi,

though you already solved the problem, here is another idea: you could also use Inheritance strategies.

Declare your Address entity this way:
@Entity
  | @Inheritance(strategy=InheritanceType.SINGLE_TABLE)
  | public abstract class Adress implements Serializable 
  | {
  | 
Let Person and Customer inherit from them:
@Entity
  | @DiscriminatorValue(value="person")
  | public class Person extends Address
  | {

Best regards

Wolfgang

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

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



More information about the jboss-user mailing list