Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error: Entity <name> has no Id or EmbeddedId

 
Martin Frisone
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 423
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi!

I don't know, but maybe:
- id != Id
- int and not Integer
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic