Class EntityManagerFactoryLocator

  • All Implemented Interfaces:
    Serializable, IProxyTargetLocator, IClusterable

    public class EntityManagerFactoryLocator
    extends Object
    implements IProxyTargetLocator
    Implementation of IProxyTargetLocator to locate Java EE 5 EntityManagerFactory

    To use this technique in a Wicket Page, just insert a line like

    private @PersistenceUnit(unitName="defaultPersistenceContext") EntityManagerFactory emf;

    The 'unitName' attribute is mandatory, and refers to the name of the persistence unit you have declared in your persistence.xml file

    Author:
    Filippo Diotalevi
    See Also:
    Serialized Form