What is transient annotation in hibernate?



What is transient annotation in hibernate?..

Answer / Swadesh Kumar Niranjan

The transient annotation in Hibernate is used to indicate that a field or property of an entity should not be persisted by Hibernate. This means the value of the field will not be stored in the database and any changes made to the value during session operations will be lost once the session is closed.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Hibernate Interview Questions

How does hibernate distinguish between transient (i.e. Newly instantiated) and detached objects?

1 Answers  


How many stages are there in hibernate inheritance?

1 Answers  


What is cascadetype in hibernate annotations?

1 Answers  


What are the steps of calling a stored procedure in hibernate?

1 Answers  


What are the advantages of hibernate?

1 Answers  


What is a configuration in hibernate?

1 Answers  


What is the default cache in hibernate?

1 Answers  


How can we reduce database write action times in Hibernate?

1 Answers  


What is an sql dialect?

1 Answers  


How to create foreign key in hibernate annotation?

1 Answers  


What does hibernate simplify?

1 Answers  


What is true for hibernate and jpa?

1 Answers  


Categories