Question: what is the difference between save and update in hibernate?
Answer: Main difference between save and saveOrUpdate method is that save() generates a new identifier and INSERT record into database while saveOrUpdate can either INSERT or UPDATE based upon existence of record. save() method will fail if the primary key is already persistent i.e. object already exists in the database.