if (LOG.isTraceEnabled()) {
LOG.trace("Inserting entity: " + getEntityName() + " (native id)");
if (isVersioned()) LOG.trace("Version: " + Versioning.getVersion(fields, this));
}
Binder binder = new Binder() {
public void bindValues(PreparedStatement ps) throws SQLException {
dehydrate( null, fields, notNull, propertyColumnInsertable, 0, ps, session );
}
public Object getEntity() {
return object;