Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-users] Question with ManyToMany relation

Hi list,

I have 2 Entities (Mapped from AS400)

TableA:
field1A
field2A
field3A
primary key(field1A,field2A,field3A)  --- TableAPK @EmbeddedId

TableB:
field1B
field2B
primary key(field1B,field2B)  --- TableBPK @EmbeddedId

next entity is relationship ManyToMany between TableA  and TableB

TableAB
field1B
field1A
field2A
field3A
primary key(field1B,field1A,field2A,field3A)

How can i create EntityAB? 3rd table only have field1B as related
field with TableB.

Thanks for your replies.

Regards,
-- 
John Arévalo
GNU/Linux User #443701
http://counter.li.org/


Back to the top