@Test public void getSession() { Session session = JPASessionUtil.getSession("utiljpa"); session.close(); }
public static Session getSession(String persistenceUnitName) { return getEntityManager(persistenceUnitName).unwrap(Session.class); }
JPASessionUtil { public static Session getSession(String persistenceUnitName) { return getEntityManager(persistenceUnitName).unwrap(Session.class); } }
JPASessionUtil { public static Session getSession(String persistenceUnitName) { return getEntityManager(persistenceUnitName).unwrap(Session.class); }  }
JPASessionUtil { public static Session getSession(String persistenceUnitName) { return getEntityManager(persistenceUnitName).unwrap(Session.class); }  @SuppressWarnings("WeakerAccess") static synchronized EntityManager getEntityManager(String persistenceUnitName); static Session getSession(String persistenceUnitName); }
JPASessionUtil { public static Session getSession(String persistenceUnitName) { return getEntityManager(persistenceUnitName).unwrap(Session.class); }  @SuppressWarnings("WeakerAccess") static synchronized EntityManager getEntityManager(String persistenceUnitName); static Session getSession(String persistenceUnitName);  }