This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes Error: Entity <name> has no Id or EmbeddedId Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Error: Entity <name> has no Id or EmbeddedId" Watch "Error: Entity <name> has no Id or EmbeddedId" New topic
Author

Error: Entity <name> has no Id or EmbeddedId

Martin Frisone
Greenhorn

Joined: Nov 05, 2007
Posts: 7
Hi, guys

I'm mapping a table Persons to a java class Persons:



and I'm getting the error: "Entity Persons has no Id or EmbeddedId". I don't understand why this happenes since I have the @Id annotation.

I appreciate any help on this. Thanks in advance!
Leandro Coutinho
Ranch Hand

Joined: Mar 04, 2009
Posts: 417
hi!

I don't know, but maybe:
- id != Id
- int and not Integer
 
 
subject: Error: Entity <name> has no Id or EmbeddedId