コード例 #1
0
 public static ServiceName getPUServiceName(String scopedPersistenceUnitName) {
   return JPAServiceNames.getPUServiceName(scopedPersistenceUnitName);
 }
コード例 #2
0
 /**
  * Returns the Persistence Unit service name used for creation or lookup. The service name
  * contains the unique fully scoped persistence unit name
  *
  * @param pu persistence unit definition
  * @return
  */
 public static ServiceName getPUServiceName(PersistenceUnitMetadata pu) {
   return JPAServiceNames.getPUServiceName(pu.getScopedPersistenceUnitName());
 }