Georgi created OLINGO-42:
----------------------------
Summary: jpa processor requires a redundant field for many-to-one
relationships
Key: OLINGO-42
URL: https://issues.apache.org/jira/browse/OLINGO-42
Project: Olingo
Issue Type: Bug
Components: odata2-jpa
Affects Versions: 1.0.0
Environment: windows7, tomcat 7.0.42, virtuoso database, eclipse link
2.5.0
Reporter: Georgi
It looks like that the only way to get a consistent EDM associations model and
the corresponding navigation properties, when there are many-to-one
(bi-directional) managed relationships, is to add an additional and redundant
property, annotated with @Column to the owning class. Same as in your reference
jpa model.
However, it's highly unlikely that one models a JPA model like this in reality
and quite an impairment particularly for existing models.
I'm not sure why is that needed, because the information encoded in the
required field @Column annotation is redundant with the one @JoinColumn
annotation and you already parse the JoinColumn anyways.
So probably that's a low hanging fruit?
--
This message was sent by Atlassian JIRA
(v6.1#6144)