Hibernate has a handful of methods that, one way or another, takes your object and puts it into the database. What are the differences between them, when to use which, and why isn’t there just one intelligent method that knows when to use what?
The methods that I have identified thus far are:
save()
update()
saveOrUpdate()
saveOrUpdateCopy()
merge()
persist()