Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
java
java
titleImplementation of a simple ExtendedEntityManager
@Typed()
class ExtendedEntityManager implements EntityManager, Serializable
{
    private static final long serialVersionUID = 3770954229283539616L;

    private transient EntityManager wrapped;

    protected ExtendedEntityManager()
    {
    }

    public ExtendedEntityManager(EntityManager wrapped)
    {
        this.wrapped = wrapped;
        this.persistenceUnitName = persistenceUnitName;
    }

    /*
     * generated
     */
     //delegate all calls to this.wrapped - most IDEs allow to generate it

...