Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

Saurabh Agarwal
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 :
the result is :

I am also able to see metadata :
the result is :

The problem comes when I am trying to get records using Odata :
the error is :

Below are my entity classes build automatically using wizard :

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

Please help me.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!