Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.sql.SQLData - Oracle object mapping problem

 
Sidd Kulk
Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi guys,

I am using java.sql.SQLData interface to map my java objects to Oracle database types.

For example, I have an object type Person in Oracle DB defined as:


Corresponding Java type is:



This works fine currently and populates Person Objects from database type.

Now, I have a another type and it's corresponding collection as follows:



I have to create a new entry in type PERSON with this collection as follows:



To make this change I have to change my java Person class. I tried adding java.sql.Array parameter but it is not working.

Can you please help here to map the new PERSON Object type to Java type?

Thanks in advance.

--Siddharth
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic