Task #13252 (new)
Opened 8 years ago
Last modified 8 years ago
Unexpected behavior of querieng MapAnnotations
Reported by: | atarkowska | Owned by: | jamoore |
---|---|---|---|
Priority: | major | Milestone: | Unscheduled |
Component: | API | Version: | OMERO-5.2.0 |
Keywords: | n.a. | Cc: | |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | n.a. |
Sprint: | n.a. |
Description
When loading IObject, like Annotation I would expect that all fields mapping objects are are unloaded (maybe except details).
I was interested why MapAnnotation?.mapValue which is basically NamedValue? is different
m = query.find('MapAnnotation', 773072) print type(m), m.mapValue <- loaded
or
sql = """ select a from MapAnnotation a where a.ns = :ns and a.details.owner.id = :id """ p = omero.sys.ParametersI() p.addId(expId) for ma in query.findAllByQuery(sql, p): print type(ma), ma.mapValue <- loaded
More as I would expect to join NamedValues? as other objects then https://gist.github.com/aleksandra-tarkowska/ace091135c97ce0027eb9e0211d58ad4 cause duplicates.