Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with @GeneratedValue

 
Deepa Datar
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have a simple Entity class.



When I execute the above code I get the following exception


Can anyone suggest where the problem lies?
 
Deepa Datar
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am adding a record by calling




Thanks
Deepa Datar
 
Deepa Datar
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Its working now. I changed the GenerationType from AUTO to TABLE. I am using MS SQLServer.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic