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

hibernate : save vs saveOrUpdate

 
A. Aka
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a problem, I have an entity when I do save, it is not persisted in DB but when I do saveOrUpdate it is persisted, What am I doing wrong ?
with save, there is no exception in the log !
I only see the posted elements if I do commit in DB ! strangely it is working with saveOrUpdate
any help ?



Thanks,
 
A. Aka
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found my problem by adding this on my entity:

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic