Hibernate- object lifecycle

  1. Transient (temporary)

    There are not mapped to a particular record database objects

  2. Persistent (lasting)

    There have been object mapping relationship with a database record

  3. Of type Detached (Independent)

    Disconnecting the connection object database

  4. Removed The (deleted)

    Corresponding to the object record has been deleted, the object should not be used

  5. Dirty data

    Because Transient and Detached from Session control, i.e. from the Session object after modification is dirty.

<< object lifecycle - drawing .vsdx >>

   

Guess you like

Origin www.cnblogs.com/AlMirai/p/12546362.html