Support query attributes resulting in Id_Entity's
Use `rollback_context` in ` Session_S.rollback`
Add guards to attribute type A_Enum