[
https://issues.apache.org/jira/browse/OLINGO-97?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13857396#comment-13857396
]
Chandan V.A commented on OLINGO-97:
-----------------------------------
In case you are using Eclipse Link 2.4.1 or 2.5.0 then please refer to this bug
- https://bugs.eclipse.org/bugs/show_bug.cgi?id=407095 because in the past we
faced similar issues while using eclipse link 2.4.1 or 2.5.0.
You could either configure the JPQL parser to ANTLRQueryBuilder by adding
<property name="eclipselink.jpql.parser"
value="org.eclipse.persistence.queries.ANTLRQueryBuilder" /> to your
persistence.xml
(or)
Upgrade your Eclipse Link to 2.5.1 or 2.4.3. I hope this solves your issue. If
not please re-open the ticket and provide following information
1) Call Stack
2) Exception
3) Eclipse Link Version
Regards
Chandan
> $expand not working with JPA entities in apache -lingo
> ------------------------------------------------------
>
> Key: OLINGO-97
> URL: https://issues.apache.org/jira/browse/OLINGO-97
> Project: Olingo
> Issue Type: Test
> Components: odata2-jpa
> Reporter: dhaval gupta
> Assignee: Chandan V.A
> Priority: Minor
>
> Hi,
> We are using olingo with JPA. The problem that we are facing is $expand is
> not working. We we try to fetch the relationship between 2 entities , it does
> not get us the associated entity have one to many or many to one
> relationship.
> Following are our entities :
> 1) This is the mapping in our Entity 2:
> @ManyToOne
> @JoinColumn(name = XXX", referencedColumnName = "XXX", insertable =
> false, updatable = false)
> @JoinFetch(JoinFetchType.OUTER)
> private Entity1 entity1;
> 2) This is the mapping in our 1st Entity:
> @OneToMany(mappedBy = "issuer", cascade = { CascadeType.ALL })
> private List<Entity2> entity2;
> Please help us on this.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)