permaculture playing cards*
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error: Entity <name> has no Id or EmbeddedId
 
Similar Threads
mapping problem and joinColumns
JPA composite key mapping
JPA - need help with query
Why is my Hibernate Search query not working?
How to Write Left Outer Join