Joined: Mon Sep 18, 2006 6:34 am Posts: 18
|
Alright, this is a total newbie question but it's got me stumped.
I'm trying to retrieve 2 fields from 2 different tables and map them to a VO class in Hibernate.
VO:
String productDescription;
String productFeatureDescription;
Table1: Products
...
ProductDesc
...
Table2: ProductFeatures...
ProductFeatDesc
...
I have the SQL query to do the joins but how do I map this to the VO. I have the following:
<hibernate-mapping>
<class name="vo.ProductsFeaturesVO">
<composite-id>
<key-property name="productDescription"/>
<key-property name="productFeatureDescription"/>
</composite-id>
</class>
</hibernate-mapping>
but how does hibernate actaully populate the VO?
|
|