I'm using Hibernate 3.0, and all my Value Object have ArrayList in them.
The mapping is something like like I have a UserVO which has an ArrayList of CampaignVOs. Each user can have multiple campaigns. Hence my mapping file, when using a set is something like:
<Set name="campaignList" table="USERCAMPAIGN" inverse="true" lazy="true">
<key column="USERID" not-null="true"/>
<one-to-many class="com.tribalfusion.sampleapp.platform.data.CampaignVO"/>
</Set>
What is the List equivalent of this ? I'm not able to find many examples for the same. Please guide.
|