Object[] props = si.getPersistenceContext().getDatabaseSnapshot(id, ep); String[] propNames = ep.getPropertyNames(); for (int i = 0; i < propNames.length; i++) { if (m_propertyName.equals(propNames[i])) { return props[i]; } } throw new IllegalArgumentException("Property '" + m_propertyName + "' not found on object '" + m_object.getClass() + "'");
Object[] props = ep.getDatabaseSnapshot(id, si); return props[propIndex];
        public Object doInHibernate(Session session) {            SessionImplementor si = (SessionImplementor) session;                    EntityPersister ep = si.getEntityPersister(null, m_object);            Serializable id = (Serializable) m_object.getPrimaryKey();            Object[] props = si.getPersistenceContext().getDatabaseSnapshot(id, ep);            String[] propNames = ep.getPropertyNames();            for (int i = 0; i < propNames.length; i++) {                if (m_propertyName.equals(propNames[i])) {                    return props[i];                }            }            throw new IllegalArgumentException("Property '" + m_propertyName                     + "' not found on object '" + m_object.getClass() + "'");        }