You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Chandan V.A (JIRA)" <ji...@apache.org> on 2015/02/01 09:47:34 UTC
[jira] [Resolved] (OLINGO-509) Problem with several relations of
type ManyToMany in one entity
[ https://issues.apache.org/jira/browse/OLINGO-509?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chandan V.A resolved OLINGO-509.
--------------------------------
Resolution: Fixed
Fix Version/s: V2 2.0.2
Assignee: Chandan V.A
> Problem with several relations of type ManyToMany in one entity
> ---------------------------------------------------------------
>
> Key: OLINGO-509
> URL: https://issues.apache.org/jira/browse/OLINGO-509
> Project: Olingo
> Issue Type: Bug
> Components: odata2-core, odata2-jpa
> Affects Versions: V2 2.0.1
> Reporter: Aleh Autushka
> Assignee: Chandan V.A
> Priority: Critical
> Fix For: V2 2.0.2
>
>
> Hello,
> Something strange is happening when I try to specify several relations of type manyToMany in one entity (lets say relation A from entity 'a' to entity 'b' and B from entity 'a' to entity 'c'). If I keep just relation
> A or just relation B I can see this relation in the metadata with Multiplicity * to *.
> When I keep both - both relations are gone from the metadata.
> Here are relations representation in JPA:
> @ManyToMany(targetEntity=Phase.class)
> @JoinTable(name="user_phase",joinColumns = @JoinColumn(name="userName", referencedColumnName="userName"), inverseJoinColumns = @JoinColumn(name = "phaseGuid", referencedColumnName="guid"))
> private java.util.Collection<Phase> phases;
>
> @ManyToMany(targetEntity=Role.class)
> @JoinTable(name="user_role",joinColumns = @JoinColumn(name="userName", referencedColumnName="userName"), inverseJoinColumns = @JoinColumn(name = "roleName", referencedColumnName="roleName"))
> private java.util.Collection<Role> roles;
> With best regards, Aleh
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)