Transient objects : Objects instantiated using the new operator are not immediately persistent.Their state is transient,which means they are not associated with any database table row,and so their state is
lost as soon as they are de-referenced.
Persist Objects : A persistent instance is any instance with a database identity.Persistent instances are associated with the persistence manager.Persistence instances are always associated with
the session and are transactional.
Detatched Objects:Instances lose their association with the persistence manager when u close the session.we refer to these objects are detached,indicating that their state is no longer guaranteed to be
synchronized with the database state.They are no longer under the management of hibernate.
lost as soon as they are de-referenced.
Persist Objects : A persistent instance is any instance with a database identity.Persistent instances are associated with the persistence manager.Persistence instances are always associated with
the session and are transactional.
Detatched Objects:Instances lose their association with the persistence manager when u close the session.we refer to these objects are detached,indicating that their state is no longer guaranteed to be
synchronized with the database state.They are no longer under the management of hibernate.