Hi all,
i am using hibernate on Sun's app server and i have the following problem testing two classes like:
class name="A" table="A">
<id name="aid" column="A_ID" type="long">
<generator class="..."/></id>
<property name="descr1" column="DSC" type="java.lang.String" />
<many-to-one name="B" column="B_ID" class="B" />
</class>
<class name="B" table="B">
<id name="bid" column="B_ID" type="long">
<generator class="..."/></id>
<property name="descr2" column="DSC" type="java.lang.String" />
</class>
when i load an A object, ejb container complains for serialization errors (on B's proxy). If i change B's id type from "long" to "java.lang.Long" everything works fine.
Thanks,
Vassilis
|