What is transient state in hibernate ?



What is transient state in hibernate ?..

Answer / Farhqe Alam

"Transient State" in Hibernate refers to an instance of a persistent class that has not been associated with any Session (or SessionFactory) yet. In other words, it's an object which was created outside the scope of Hibernate and not persisted to the database. The state of such objects can be modified, but they will not be saved in the database until they are made persistent by calling methods like save(), persist() or merge().

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Hibernate Interview Questions

What is named query in hibernate?

1 Answers  


What is meant by annotation in hibernate?

1 Answers  


What is hibernate ogm?

1 Answers  


What is difference between session and sessionfactory in hibernate?

1 Answers  


What is lazy loading and why is it used for?

1 Answers  


Is hibernate an implementation of jpa?

1 Answers  


What is query level cache in hibernate?

1 Answers  


Describe the method used to create an hql query and sql query?

1 Answers  


What we can not do in jdbc but can do hibernate?

1 Answers  


How to create two same tables in different schema’s by using single configuration file?

1 Answers  


Which annotation is used to declare a class as a hibernate bean ?

1 Answers  


What is the difference between jpql and hql?

1 Answers  


Categories