See ObjectRelationalMapping.