Difference between session.save() and session.saveOrUpdate()



Q) Difference between session.save() and session.saveOrUpdate()?
A)

session.save() – Insert data into the table
session.saveOrUpdate()- Insert data if primary key not exist otherwise update

Random Posts

  • Java Swings Interview Questions
  • What the web.xml file can do
  • Jsp Example: File Uploading
  • Define Stored Procedures
  • Cookie Examples

Post a Comment