• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Odata service call error : object is not an instance of declaring class

 
Saurabh Agarwal
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Experts,

I am trying to create a "JPA Entity from Tables" in Eclipse Luna
The objective is to expose Oracle table using Odata services.
After going through all wizards and all necessary configurations, I am able to expose table using Odata.
I am able to see entities created when I access :
http://localhost:8080/carandoUI5Demo/carando.svc/
the result is :


I am also able to see metadata :
http://localhost:8080/carandoUI5Demo/carando.svc/$metadata
the result is :


The problem comes when I am trying to get records using Odata :
http://localhost:8080/carandoUI5Demo/carando.svc/ZaeProdorders?$top=20
the error is :


Below are my entity classes build automatically using wizard :
ZaeProdorder.java

ZaeProdorderPK.java

ZaeGoodsrecpt.java

ZaeGoodsrecptPK.java


There is also an association of one to many from zae_prodorder table to zae_goodsrecpt table.

Please help me.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic