[jboss-user] [EJB3] - @SecondaryTables in EJB 3.1
Pasqualino Imbemba
do-not-reply at jboss.com
Tue Jun 4 04:22:13 EDT 2013
Pasqualino Imbemba [https://community.jboss.org/people/pi4630] created the discussion
"@SecondaryTables in EJB 3.1"
To view the discussion, visit: https://community.jboss.org/message/821180#821180
--------------------------------------------------------------
I'm not up-to-date with EJB 3.1 spec, but is it possible now to make use of @SecondaryTables together with FK relations?
Say I've got three tables, A, B, and C - each has their own PK. B has an FK relation to C and A has a FK relation to B. On bean level, I'd like to create an entity which is the sum of all attributes of A, B, and C.
With EJB 3.0, JPA requires that secondary tables contain the id of the entity (as PK). I am looking for multiple table join to be based on foreign keys - and found http://wiki.eclipse.org/EclipseLink/UserGuide/JPA/Basic_JPA_Development/Entities/SecondaryTable#Advanced_Multiple_Table_Configuration eclipselink. I was wondering if such feature is covered by JPA used in EJB 3.1.
Thanks.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/821180#821180]
Start a new discussion in EJB3 at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130604/d2f4cbe8/attachment.html
More information about the jboss-user
mailing list