Well, the fix was to use this.setJdk5(true) function to essentially tell my customer generator task to use generics.
However, while most of my collections now had the correct classes in the generated classes, I noticed Map types did not get generated correctly.
For example my hbm.xml file for MyClass has this in it:
Code:
<map name="myMapItems" lazy="false" inverse="true">
<key column="MY_FIRST_COL_ID" />
<map-key column="MY_SECOND_COL_ID" type="Integer"/>
<one-to-many class="mycompany.MapItem"/>
</map>
When I generated code, the java file had this in it:
Code:
private Map<mycompany.MapItem> myMapItems;
I want it to look like:
Code:
private Map<Integer, mycompany.MapItem> myMapItems;
Does anybodey know how to do this?
Thanks.