Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-users] Does a Join Table need an @ID annotation?

Hi,

I have three entities that have a many to many relationship with each
other.  The relationship is stored in a join table which is also an
entity.  So I have Entity1, Entity2 and Entity3 and a "relational"
entity called "EntityRel" which has references to the first three
entities (in DDL speak, it's a table with three foreign keys).  I was
wondering why I MUST have an extra column  in the EntityRel table
mapped to an @Id annotation in the class when I don't really need it
or will ever use it.

Thoughts?

Thanks,
Zarar


Back to the top