[teiid-issues] [JBoss JIRA] (TEIID-3015) ODATA: Duplicate NavigationProperty name
Ivan Lucas Vargas (JIRA)
issues at jboss.org
Mon Mar 21 20:28:00 EDT 2016
[ https://issues.jboss.org/browse/TEIID-3015?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13180211#comment-13180211 ]
Ivan Lucas Vargas commented on TEIID-3015:
------------------------------------------
Here's the real example:
<EntityType Name="CAD_CLIENTE_FORNECEDOR_LOCAIS">
<Key>
<PropertyRef Name="ID_LOCAL"/>
</Key>
<Property Name="ID_LOCAL" Type="Edm.Decimal" Nullable="false"/>
... some other properties ...
<Property Name="ESTADO" Type="Edm.String" Nullable="true" MaxLength="2" FixedLength="false" Unicode="true"/>
<NavigationProperty Name="CAD_CLIENTE_FORNECEDOR" Relationship="full.CAD_CLIENTE_FORNECEDOR_LOCAIS_CAD_CLI_FOR_LOC_FK" FromRole="CAD_CLIENTE_FORNECEDOR_LOCAIS" ToRole="CAD_CLIENTE_FORNECEDOR"/>
<NavigationProperty Name="*EFD_CAPA_DOCFIS*" Relationship="full.EFD_CAPA_DOCFIS_FK_EFD_CAPA1" FromRole="CAD_CLIENTE_FORNECEDOR_LOCAIS" ToRole="EFD_CAPA_DOCFIS"/>
<NavigationProperty Name="*EFD_CAPA_DOCFIS*" Relationship="full.EFD_CAPA_DOCFIS_FK_EFD_CAPA2" FromRole="CAD_CLIENTE_FORNECEDOR_LOCAIS" ToRole="EFD_CAPA_DOCFIS"/>
<NavigationProperty Name="*EFD_CAPA_DOCFIS*" Relationship="full.EFD_CAPA_DOCFIS_FK_EFD_CAPA5" FromRole="CAD_CLIENTE_FORNECEDOR_LOCAIS" ToRole="EFD_CAPA_DOCFIS"/>
<NavigationProperty Name="*EFD_CAPA_DOCFIS*" Relationship="full.EFD_CAPA_DOCFIS_FK_EFD_CAPA6" FromRole="CAD_CLIENTE_FORNECEDOR_LOCAIS" ToRole="EFD_CAPA_DOCFIS"/>
<NavigationProperty Name="*EFD_CAPA_DOCFIS*" Relationship="full.EFD_CAPA_DOCFIS_FK_EFD_CAPA8" FromRole="CAD_CLIENTE_FORNECEDOR_LOCAIS" ToRole="EFD_CAPA_DOCFIS"/>
<NavigationProperty Name="*EFD_CAPA_DOCFIS*" Relationship="full.EFD_CAPA_DOCFIS_FK_EFD_CAPA9" FromRole="CAD_CLIENTE_FORNECEDOR_LOCAIS" ToRole="EFD_CAPA_DOCFIS"/>
</EntityType>
Am I doing something wrong?
> ODATA: Duplicate NavigationProperty name
> ----------------------------------------
>
> Key: TEIID-3015
> URL: https://issues.jboss.org/browse/TEIID-3015
> Project: Teiid
> Issue Type: Bug
> Components: OData
> Affects Versions: 8.3
> Reporter: Ramesh Reddy
> Assignee: Ramesh Reddy
> Labels: Beta3
> Fix For: 8.8, 8.7.1
>
>
> Entity 1: TransferRule
> Entity 2: FinancialAccount
> TransferRule
> - sourceAccount : FinancialAccount
> - destination : FinancialAccount
> - other attributes
> the mapping to this for odata resolves to
> <NavigationProperty Name="financialaccount" Relationship="LivingODS.transferrule_destinationfinancial_account_id_fk" FromRole="transferrule" ToRole="financialaccount" />
> <NavigationProperty Name="financialaccount" Relationship="LivingODS.transferrule_sourcefinancial_account_id_fk" FromRole="transferrule"
> ToRole="financialaccount" />
> The navigation property name is duplicated with in transfer rule entity.
> Hence some of the Odata client see it as ambiguous element
> Is there a way to customise the Name to
> Name="src_financialaccount" and
> Name="dest_financialaccount"
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the teiid-issues
mailing list