If I use the deprecated saveOrUpdate()
in the dao layer, the method returns an object with an assigned id. If I use merge()
, on the other hand, it returns an object with an id of zero (entities are saved correctly in the database). Why?
If I use the deprecated saveOrUpdate()
in the dao layer, the method returns an object with an assigned id. If I use merge()
, on the other hand, it returns an object with an id of zero (entities are saved correctly in the database). Why?