543544545546547548549
String entityName = entityClassMap.get(clazz); if (entityMap.containsKey(entityName)) { return entityMap.get(entityName).getIdProperty(); } } throw new PersistenceException("The class " + clazz.getName() + "is not registered as an entity."); }
578579580581582583584
} // throw a new persistence exception and log the error private static void throwPersistenceException(String msg, Exception e) throws PersistenceException { LOG.error(msg, e); throw new PersistenceException(msg, e); }