Package org.apache.tapestry5.hibernate.web.internal

## Class PersistedEntity

- java.lang.Object
- - org.apache.tapestry5.hibernate.web.internal.PersistedEntity

- All Implemented Interfaces:
    `Serializable`, `SessionRestorable`

      @ImmutableSessionPersistedObject
      public class PersistedEntity
      extends Object
      implements SessionRestorable

  Encapsulates a Hibernate entity name with an entity id.
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `PersistedEntity​(String entityName, Serializable id)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `Object` | `restoreWithSession​(org.hibernate.Session session)` |
    `String` | `toString()` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### PersistedEntity

          public PersistedEntity​(String entityName,
                                 Serializable id)

  - ### Method Detail

    - #### restoreWithSession

          public Object restoreWithSession​(org.hibernate.Session session)

      Specified by:
        `restoreWithSession` in interface `SessionRestorable`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`