Hi All,
I am trying my hands on Hibernate's userType and struck in some problem.here is my mapping file
Code:
<hibernate-mapping>
   <class name="MyClass"
      table="MYTABLE">
      <id name="uuid" type="java.lang.String">
         <column name="UUID" />
         <generator class="uuid" />
      </id>
      <property name="MyClass_i18n" type="MyClassi18n" >
         <column name="NAME"/>
         <column name="SHORTDESCRIPTION"/>
         <column name="LONGDESCRIPTION"/>
         <!--<column name="LANGUAGE_ID"/>
   --></property>
  
   </class>
</hibernate-mapping>
and here is the code from my CompositeUserType
Code:
@Override
   public void nullSafeSet(PreparedStatement ps, Object arg1, int index,
         SessionImplementor arg3) throws HibernateException, SQLException {
      
      if(arg1==null){
         //todo
      }
      else{
          MyClass_i18n des=(MyClass_i18n)arg1;
          des=dao.saveMyClass_i18n(des);
          ps.setString(index, des.getXYZ());
          ps.setString(index+1, des.getXYZ());
          ps.setString(index+2, des.getXYZ());
           ps.setString(index+3, des.getXYZ());
         
      }
   }
i want to get access to MyClass instance inside the nullSafeSet(...) method.
i have access to MyClass_i18n in this method but some how not able to get instance of the MyClass.
Is there any way to get reference/access of this MyClass instance
Thanks in advance
Umesh