• 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:

 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!