JpaConfiguration.java 365 Bytes
package org.legrog.configuration;

import javax.enterprise.context.RequestScoped;
import javax.enterprise.inject.Produces;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;


public class JpaConfiguration {

    @Produces
    @RequestScoped
    @PersistenceContext(unitName = "book-pu")
    public EntityManager entityManager;

}