What is entitymanager persist?



What is entitymanager persist?..

Answer / Deepak Sahu

EntityManager's persist() method saves a new transient entity (an entity that is not associated with any database table) to the database. The entity will become managed by Hibernate and can be retrieved using queries or future access.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Hibernate Interview Questions

What is persistence context in hibernate?

1 Answers  


What do you create a sessionfactory?

1 Answers  


What is flush in hibernate?

1 Answers  


What is merge in hibernate?

1 Answers  


What is spring and hibernate framework?

1 Answers  


What is hibernate criteria join?

1 Answers  


Why is jdbc better than hibernate?

1 Answers  


Difference between the transient, persistent and detached state in hibernate?

1 Answers  


Is hql database independent?

1 Answers  


What is mappedby?

1 Answers  


What is the use of hibernate proxy in hibernate?

1 Answers  


What inheritance mapping strategies are available in hibernate?

1 Answers  


Categories