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 |
What do you mean by hibernate configuration file?
What does session evict () method do in hibernate?
What is the general flow of hibernate communication with rdbms?
What is orm and its advantages?
What is proxy in hibernate?
What is current_session_context_class in hibernate?
What is the need of hibernate tools when orm tools can be used?
Is orm slow?
Why is hibernate used in java?
What are the types of entity relationship?
What is @embeddedid?
How is sql query created in hibernate?