Can session.save method in hibernate be used for updating the entity -


in hibernate, if use session.save method instead of session.update updating entity.what behavior like.i asked question colleague of mine , totally short of answers.

the documentation suggest save assign id entity (or use current id if present) , try insert in database.

therefore, if have constraints of uniqueness on table, end hibernate exception.

if not, have twice entry.

(i think)


Comments

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -