TPS-735 [5.5.1]integrity constraint check failed when deleting record but there' no fk point to it(TMDM-7772)
TMDM-7590: "integrity constraint check failed when deleting record but there' no fk point to it"

Deleting record in relation table record when no longer necessary (both single and repeatable FKs).
(https://jira.talendforge.org/browse/TMDM-7590)

Cherry picked from 1abaaef792808099499580d63825dc845bbddacd

Conflicts:
	org.talend.mdm.core/test/com/amalto/core/query/InheritanceTest.java
	org.talend.mdm.core/test/com/amalto/core/query/StorageQueryTest.java
	org.talend.mdm.core/test/com/amalto/core/query/StorageTestCase.java
	org.talend.mdm.core/test/com/amalto/core/query/metadata.xsd