//package com.mry.utils;
//
//import javax.persistence.EntityManager;
//import javax.persistence.EntityManagerFactory;
//import javax.persistence.Persistence;
//
//public class MyJpaUtils {
//
//    private static EntityManagerFactory factory;
//
//    static {
//        factory = Persistence.createEntityManagerFactory("myJpa");
//    }
//
//    public static EntityManager EntityManager(){
//        return factory.createEntityManager();
//    }
//}
