Hello
I have a Size Chart object with multiple Size Value associated with it. In case you're wondering, a Size Chart might be "dress sizes" and its associated Size Values might be "small", "medium", and "large". When I retrieve the object from Hibernate, the list of size charts contains a null value.
I turned on debug_sql and executed the SELECT statement. The SELECT statement returned 7 rows, but the collection inside my Java object has 8 entries, one of which is null. Can somebody help me debug this? Thank you!
The HBM looks like this:
<class name="com.bluefly.apps.manager.domain.VendorSizeChart" table="VENDOR_SIZE_CHART" proxy="com.bluefly.apps.manager.domain.VendorSizeChart" > <list name="vendorSizeValues" inverse="true" cascade="all" > <key column="VENDOR_SIZE_CHART_ID" not-null="true"/> <list-index column="SORT_ORDER" base="1"/> <one-to-many class="com.bluefly.apps.manager.domain.VendorSizeValue" /> </list> </class>
<class name="com.bluefly.apps.manager.domain.VendorSizeValue" table="VENDOR_SIZE_VALUE" proxy="com.bluefly.apps.manager.domain.VendorSizeValue" > <many-to-one name="vendorSizeChart" class="com.bluefly.apps.manager.domain.VendorSizeChart" not-null="true" cascade="all" > <meta attribute="use-in-equals">true</meta> <meta attribute="use-in-tostring">true</meta> <column name="VENDOR_SIZE_CHART_ID"/> </many-to-one>
</class>
I am using Hibernate 3.2.2 with Oracle 10.2, JBoss, and Spring
|