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

dhaval gupta commented on OLINGO-97:
------------------------------------

I am getting the below message on my  server console while I make the following 
request :

https://localhost:29071/olingo-context/SalesOrderProcessing.svc/SalesOrderHeaders?$expand=salesOrderItem&$filter=SoId
 
<https://localhost:29071/olingo-context/SalesOrderProcessing.svc/SalesOrderHeaders?%24expand=salesOrderItem&$filter=SoId>
  eq 3

For sales order id 3 we are not getting the corresponding sales order item. 


Message on server console :

518848354:SalesOrderItemKey [ javaType: class 
com.csg.cs.cdds.jpa.processor.ref.model.SalesOrderItemKey descriptor: 
RelationalDescriptor(com.csg.cs.cdds.jpa.processor.ref.model.SalesOrderItemKey 
--> [
]), mappings: 2]] and descriptor 
[RelationalDescriptor(com.csg.cs.cdds.jpa.processor.ref.model.SalesOrderItemKey 
--> [])].


> $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)

Reply via email to