mattmadhavan wrote:
Hello,
I have the following mappings for a composite-element as a list.
<list name="lineItems" table="lineitem" lazy="false">
<key column="orderid"/>
<index column="linenum"/>
<composite-element class="LineItem">
<property name="quantity" column="quantity"/>
<property name="unitPrice" column="unitprice"/>
<many-to-one name="item" column="itemid" cascade="none"/>
</composite-element>
</list>
When I read the Parent class, the children (lineItems) get loaded. But the attribues for the key column (orderid) and the index column (linenum) do not get loaded. (They are always zero-default value for java). All the other properties (like quantity, unitPrice and Item are loaded).
The orderid and linenum form the primary key in the lineitem table.
Any ideas? Any help would be appreciated.
Thanks
Matt
I'd also like to know!
Regards, Kevin