@staticmethod
def _from_db_object(exec_inst, db_exec_inst):
    """Converts a database entity to a formal object."""
    for field in exec_inst.fields:
        setattr(exec_inst, field, db_exec_inst[field])
    exec_inst.obj_reset_changes()
    return exec_inst
