<!-- Contributor actor relation: Study to User
-->
<union-subclass name="org.splat.dal.bo.som.ContributorRelation" extends="org.splat.dal.bo.kernel.Relation" table="contributor_rel">
- <many-to-one cascade="merge" name="refer" column="refer" access="field" not-null="true" />
+ <many-to-one name="refer" column="refer" access="field" not-null="true" />
+<!-- <many-to-one cascade="all-delete-orphan" unique="true" name="refer" column="refer" access="field" not-null="true" />
+ -->
</union-subclass>
<!-- ValidationCycle relation: Study to ValidationCycle
-->
<union-subclass name="org.splat.dal.bo.som.ValidationCycleRelation" extends="org.splat.dal.bo.kernel.Relation" table="cycle_rel">
<many-to-one name="refer" column="refer" unique="true" cascade="all-delete-orphan" access="field" not-null="true" />
- <!-- <many-to-one cascade="merge" name="refer" column="refer" unique="true" access="field" not-null="true" />-->
+ <!-- <many-to-one name="refer" column="refer" unique="true" access="field" not-null="true" />-->
</union-subclass>
<!-- Stamp relation: Document to Timestamp
// /////////////////////////////////////////////////////////
ht.clear();
+ // Check removal of contributors relation
+ List found1 = ht.find("from ContributorRelation where owner=" + studyId);
+ Assert.assertEquals(found1.size(), 1,
+ "ContributorRelation is not created");
+ ht.clear();
+
_studyService.removeStudy(studyId);
ht.flush();