public class JPAUtil {
private static final EntityManagerFactory FACTORY = Persistence
.createEntityManagerFactory("loja");
public static EntityManager getEntityManager() {
return FACTORY.createEntityManager();
}
}
professor, nesse caso aqui pq colocar o metodo e a variavel como static?