refs #6086: Resoure Registry MUST automatically add to Relation default Referential Integrity directive when the client does not specify anything

https://support.d4science.org/issues/6086

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry-orientdb-hooks@135113 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Luca Frosini 2016-11-30 13:52:12 +00:00
parent 92f79dd944
commit 376840a3d8
1 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,24 @@
/**
*
*/
package org.gcube.informationsystem.orientdb.hooks;
import org.gcube.informationsystem.model.embedded.RelationProperty;
import org.gcube.informationsystem.model.relation.ConsistsOf;
import com.orientechnologies.orient.core.db.document.ODatabaseDocument;
/**
* @author Luca Frosini (ISTI - CNR)
*/
public class ConsistsOfHook extends RelationHook {
public ConsistsOfHook() {
super(ConsistsOf.NAME, RelationProperty.ReferentiaIntegrity.onDeleteCascadeWhenOrphan);
}
public ConsistsOfHook(ODatabaseDocument database) {
super(database, ConsistsOf.NAME, RelationProperty.ReferentiaIntegrity.onDeleteCascadeWhenOrphan);
}
}