-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Map or Convert Oracle type to Java object with Hibernate
PostPosted: Wed Dec 02, 2009 4:36 am 
Newbie

Joined: Wed May 09, 2007 5:22 am
Posts: 4
Hi All,

I would like to map or convert an Oracle type to an Java object like described here:
https://www.hibernate.org/261.html

There are two things that I would like to do different.
1) I would like to create a mapping for an Java object that maps to an Oracle type. So not a property but an Java class that maps to an Oracle type directly and not to table or row.
2) Same object as 1) but as an array.

The reason I would like to this, is that I would like to create an Java object and pass it an Oracle stored procedure that accepts and array of custom defined Oracle type.

This is how the Oracle types look like:

type t_user_type is record(
first_name varchar2(18),
last_name varchar2(18),
);

type t_user_type_tab is table of t_user_type index by binary_integer;

How do I define the Hibernate mapping and the Java objects?

Thanks in advance.

Tuno


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.