What hibernate save returns?



What hibernate save returns?..

Answer / Pratibha Pal

After calling the 'save' method in Hibernate, it returns an object of type 'org.hibernate.id.Identifier' or a primary key object (depending on the strategy used) if the entity is persisted successfully. If the entity already exists in the database and is being updated, save returns the same detached object that was passed to the method.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Hibernate Interview Questions

What do you mean by hibernate configuration file?

1 Answers  


What does session evict () method do in hibernate?

1 Answers  


What is the general flow of hibernate communication with rdbms?

1 Answers  


What is orm and its advantages?

1 Answers  


What is proxy in hibernate?

1 Answers  


What is current_session_context_class in hibernate?

1 Answers  


What is the need of hibernate tools when orm tools can be used?

1 Answers  


Is orm slow?

1 Answers  


Why is hibernate used in java?

1 Answers  


What are the types of entity relationship?

1 Answers  


What is @embeddedid?

1 Answers  


How is sql query created in hibernate?

1 Answers  


Categories