users@glassfish.java.net

No ID column

From: Kenneth Clark <kenneth_at_rabiddog.co.za>
Date: Tue, 12 Jun 2007 19:23:07 +0200

I have a many to many table that designates the relationships between two
entities and I get the following error:

It should define either an @Id, @EmbeddedId or an @IdClass.
javax.persistence.PersistenceException: Exception [TOPLINK-28018] (Oracle
TopLink Essentials - 2.0 (Build b41d-beta2 (04/24/2007))):

 

The table contains no primary keys as it doesn't require any.

 

Anyone have any ideas?

 

Kenneth Clark
System Architect / Lead Developer

Rabid Dog Laboratories T
Putting the art back into development

tel: +27 11 475 7409
mobile: +27 82 500 5090
e-mail: kenneth_at_rabiddog.co.za
website: http://www.rabiddog.co.za/