File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes java.sql.SQLData - Oracle object mapping problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "java.sql.SQLData - Oracle object mapping problem" Watch "java.sql.SQLData - Oracle object mapping problem" New topic
Author

java.sql.SQLData - Oracle object mapping problem

Sidd Kulk
Ranch Hand

Joined: Feb 20, 2007
Posts: 152

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.sql.SQLData - Oracle object mapping problem
 
Similar Threads
Dout in @JoinColumn annotation
Passing Nested Type from Java to DB
Error with user defined object datatypes
Stored Procedure and Java
One-to-One mapping problem