What are the main differences between persistent and transient objects?
S.no | Persistent Objects | Transient Objects |
---|---|---|
1. | In this state, the database has the saved objects | The objects are not kept in the database in this state of Hibernation |
2. | Example- An entity from a repository comes under persistent objects | Until persisted, the creation of a new entity is called transients |
BY Best Interview Question ON 05 Apr 2019