Joined: Fri Sep 15, 2006 9:25 am Posts: 3 Location: India
|
HI all,
Need your help
I am using any tag with table per concrete class mapping following is the mapping:- there is a abstract class abstractClass
mapping for abstractClass.hbm.xml:-
<class Class1
...
><id name="userID"..../> </class>
<class Class2
...
><id name="userID"..../> </class>
now there is another class UtilClass which has a joined subclass in it and any tag for the above two classes like this:-
mapping for UtilClass.hbm.xml:-
<class name="UtilClass"....
<any name="user" id-type="java.lang.Long" meta-type="string">
<meta-value value="USER1" class="Class1"/>
<meta-value value="USER2" class="Class2"/>
<column name="userID"/>
<column name="user_id"/>
</any>
.......
<joined-subclass name="JoinedClass".....>
.....
..
</class>
when I try to update the UtilClass by using the Session.saveOrUpdate() metod it gives me error as "cannot save null values" for AbstractType.
Is there anything that I need to do to update the values?
|
|