Hi All,
I would like to map or convert an Oracle type to an Java object like described here:
https://www.hibernate.org/261.htmlThere 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