openmicroscopy/openmicroscopy — pull request #1223 by joshmoore (2013-05-29 17:36:35+00:00)
Title: 11000 companion constraints

Correct the "FileAnnotation improperly linked by ..." errors described by @will-moore and @pwalczysko. This was caused by the circular graph:
```
---> FileAnnotation ----------
/ \
Image -+ +--> OriginalFile
\ /
---> Fileset --> FilesetEntry-
```
This is fairly invasive change based on re-trying many more rows than we have previously tried. However, to handle the cycles that we've introduced with `Fileset`, there may be no other way around.

To test, import CMU-1 which includes a companion file. The companion file will get attached to all `Images` as a `FileAnnotation`. Then add all of the `Images` to a single `Dataset`. Attempt to move the `Dataset` in a single operation:
```
bin/omero chgrp MyOtherGroup /Dataset:5
```

/cc @mtbcarroll