Critical changes on E2Hibernate for correct save in db after changes for
avoid marshaling errors in rest services