private boolean changesMade() {
if(currentRow == null)
return false;
ObjEntity objEntity = currentRow.getObjEntity();
for (ObjAttribute attr : objEntity.getAttributes()) {
DbAttribute dbAttribute = attr.getDbAttribute();
if(dbAttribute.isGenerated() || dbAttribute.isForeignKey())
continue;
final Object value_frm = data.get(attr).getValue();
final Object value_db = currentRow.readProperty(attr.getName());
if(!equal(value_frm, value_db))
return true;
}
for (ObjRelationship rel : objEntity.getRelationships()) {
if(rel.isToMany())
continue;
final Object value_frm = dataRel.get(rel).getValue();
final Object value_db = currentRow.readProperty(rel.getName());