I have an entity which needs fields from another table. The second table is basically an extension of the first as they have the same primary key…
For instance
Organization 1: OrganizationExtension
___________ _____________________
PK: OrgaID PK: OrgID
How can I get those two tables into the same entity bean?
Found the answer here…
OpenJPA
Essentially you would do this…
if you were using Annotations and not XML…
only question remaining would be how do you identify the columns in the second table?
Answered the second part of that as well…
You would just do the following
@Column(table="ORGANIZATION_LINK", name="EVENING_HOURS")