List of usage examples for org.hibernate.persister.entity EntityPersister getMappedClass
Class getMappedClass();
From source file:es.logongas.ix3.dao.impl.rules.EventListenerImplRuleEngine.java
License:Apache License
Object getOriginalEntity(Object[] oldState, EntityPersister entityPersister) { try {/*from w w w .ja v a 2s . com*/ Object originalEntity = entityPersister.getMappedClass().newInstance(); stateToEntity(oldState, originalEntity, entityPersister); return originalEntity; } catch (InstantiationException ex) { throw new RuntimeException(ex); } catch (IllegalAccessException ex) { throw new RuntimeException(ex); } }