metamodel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kasper Sørensen (JIRA) <j...@apache.org>
Subject [jira] [Commented] (METAMODEL-110) Not able to remove foreignkey relationship
Date Fri, 30 Jan 2015 10:26:34 GMT

    [ https://issues.apache.org/jira/browse/METAMODEL-110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14298444#comment-14298444
] 

Kasper Sørensen commented on METAMODEL-110:
-------------------------------------------

probably because the table(s) involved are not mutable. Can you tell more about what happens,
what datastore type is it etc.?

> Not able to remove foreignkey relationship
> ------------------------------------------
>
>                 Key: METAMODEL-110
>                 URL: https://issues.apache.org/jira/browse/METAMODEL-110
>             Project: Apache MetaModel
>          Issue Type: Bug
>            Reporter: sai dhiraj v
>
> Relationship[] relationships = schema.getRelationships();
> 		Table t = schema.getTableByName("Table3");
> 		Relationship[]  rs = t.getForeignKeyRelationships();
> 		MutableRelationship r = (MutableRelationship)rs[0];
> 		r.remove();



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message