Hibernate version:  
2.1.6
Name and version of the database you are using: 
Oracle 9i, JDBC Driver: classes12.zip
Hello everyone,
we have an Oracle 9i (9.2) DB which uses some UDTs, like the following:
Code:
create or replace type color as object (r number, g number,b number);
These are part of existing classes. Until now, these have been accessed using the SQLData interface. From searching through the Forum, I found several pointers to the UserType/CompositeUserType Interfaces, and tried to implement these. However, even after looking through the Reference, Hibernate in Action Chapter 6.1 and the APIdoc, I do not understand how to implement the two methods nullSafeGet() and nullsafeSet() in my case. Could anyone give me a hint what I have do do in these with my UDT?
The portion of the mapping file for the table thast has this color UDT looks  like this:
Code:
    <property
        name="color"
        type="net.sf.hibernate.type.Color"
        column="COLOR">
        <meta attribute="field-description">
           @hibernate.property
            column="COLOR"
        </meta>    
    </property> 
Unfortunately, I keep getting Exceptions when trying to instantiate a Session., so I assume there is a mistake in the UserType, and more specific, in my implementations of the aforementioned methods.
I am not very happy with these UDTs, however, changing the DB schema is, very unfortunately, not an option, since several legacy apps use it.
Thanks in Advance & regards,
Thorsten