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

## Class PersistedEntity

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

- All Implemented Interfaces:
    `java.io.Serializable`, `SessionRestorable`

      @ImmutableSessionPersistedObject
      public class PersistedEntity
      extends java.lang.Object
      implements SessionRestorable

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

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `PersistedEntity​(java.lang.String entityName, java.io.Serializable id)` |

  - ### Method Summary

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

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

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

- - ### Constructor Detail

    - #### PersistedEntity

          public PersistedEntity​(java.lang.String entityName,
                                 java.io.Serializable id)

  - ### Method Detail

    - #### restoreWithSession

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

      Specified by:
        `restoreWithSession` in interface `SessionRestorable`

    - #### toString

          public java.lang.String toString()

      Overrides:
        `toString` in class `java.lang.Object`