I have worked out much harder mapping problems then this, but for some reason I am
still a bit new on this stuff and making no headway. I would appreciate a more
seasoned glance.
Problem: OfferVO is not being materialized after succesfully retrieving the
Collection of OrderItemVO by using getCollectionByQuery(query). Each OrderItemVO
should have exactly one OfferVO, but the reference to the OfferVO only returns null.
<!-- Definitions for the OrderItemVO object -->
<class-descriptor class="com.jobbank.jobbank.model.order.OrderItemVO"
table="orderitem">
<field-descriptor
name="memberId"
column="mid"
jdbc-type="INTEGER"
primarykey="true"
/>
<field-descriptor
name="orderId"
column="orderid"
jdbc-type="INTEGER"
primarykey="true"
/>
<field-descriptor
name="offerId"
column="offerid"
jdbc-type="INTEGER"
primarykey="true"
/>
<reference-descriptor
name="offer"
class-ref="com.jobbank.jobbank.model.offer.OfferVO"
auto-retrieve="true"
auto-update="false"
auto-delete="false">
<foreignkey field-ref="offerId"/>
</reference-descriptor>
</class-descriptor>
<!-- Definitions for the OfferVO object -->
<class-descriptor class="com.jobbank.jobbank.model.offer.OfferVO" table="offer"
auto-retrieve="true" auto-update="false" auto-delete="false">
<field-descriptor
name="offerId"
column="offerid"
jdbc-type="INTEGER"
primarykey="true"
/>
<field-descriptor
name="name"
column="name"
jdbc-type="VARCHAR"
/>
<field-descriptor
name="offerPrice"
column="offerprice"
jdbc-type="DOUBLE"
/>
<collection-descriptor
name="offeredProducts"
element-class-ref="com.jobbank.jobbank.model.offer.OfferedProductVO"
proxy="true">
<inverse-foreignkey field-ref="offerId"/>
</collection-descriptor>
</class-descriptor>
Thank you muchly,
JohnE
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]