-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Dynamic population question
PostPosted: Wed Oct 25, 2006 9:31 am 
Newbie

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?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.