Ok awesome um the only problem is I have been having difficulty with getting the subselect to work with the set. what is the syntax?
<set name="tireProducts" lazy="false" inverse="true" >
<subselect>select id,prod_id from ModelYearProduct myp</subselect>
<key column="tire_model"/>
<one-to-many class="com.tiresport.dataobject.TireProductDO" />
<filter name="makeYearVehicleFilter"
condition="tireproduc0_.prod_id = myp.prod_id and
myp.id = :makeYearVehicleParam"/>
</set>
If you see my subselect I need the id field from the ModelYearProduct table which joins with the child TireProduct table through the prod_id field. That id field represents a make, year and vehicle pair that links with a product.
|