What is difference between persistent and transient objects?



What is difference between persistent and transient objects?..

Answer / Subodh Anand

In Hibernate, a persistent object is an object that has been saved to the database, while a transient object is an object that has not yet been saved or has been evicted from the session. Persistent objects are managed by the Hibernate Session and have a unique identifier (ID). Transient objects do not have an ID and are not associated with any database table.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Hibernate Interview Questions

What is difference between hibernate session get() and load() method?

1 Answers  


Which one is the default transaction factory in hibernate?

1 Answers  


What is cascading and what are different types of cascading?

1 Answers  


What is difference between hibernate and jpa?

1 Answers  


What is hibernate flush?

1 Answers  


Is hibernate obsolete?

1 Answers  


What do you map in orm process?

1 Answers  


What does hql stand for?

1 Answers  


Does hibernate support mongodb?

1 Answers  


What is transaction management in hibernate?

1 Answers  


What is lazy code?

1 Answers  


What is the benefit of hibernate criteria api?

1 Answers  


Categories