jpa inheritance
i have jpa entities get another uses discriminator establish category combined (untested yet).
@entity(name="switches")
@discriminatorcolumn(name="type")
@discriminatorvalue(value="500")
public category dmsswitch extends switch implements serializable {}
@mappedsuperclass
public summary category switch implements iswitch {}
@entity(name="switch_accounts")
public category switchaccounts implements serializable {
@manytoone()
@joincolumn(name="switch_id")
dmsswitch _switch;
}
so switchaccounts category i bottom category switch since i don't know vigilant combined until runtime. i grasp this?
Comments
Post a Comment