JpaConfiguration.java
372 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 = "development-pu")
public EntityManager entityManager;
}