Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Getting Error when Fetching data of Object Type Column using Hibernate  RSS feed

Sapan Shah
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have oracle database in which we have table name (PRICES) and in that having one column of object type (MYMONEY).
create table prices ( id number, price mymoney );
create type mymoney as object (local_value number,mnemonic varchar2(3));

Problem is that we are not able to retrieve data list of object type column using Hibernate but we are able to insert the data on the above tables successfully.
Below is the error we are getting when we try to retrieve the data...

The following are the files we are using as follows:--

Step I) We have created file to map with prices table.

Step II) We have created file.

Step III) We have created file using Hibernate Custom UserType.

Step IV) Then we have created HibernateMapping.xml

Step V) Then we have created

Step VI) Then we finally created to Run the program.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!