Hibernate version: 3
First, thanks in advance for any help. My problem concerns the proper mapping of a Java 5 generic class as an ArrayList to non-generic classes.
Here is the situation.
I have a generic class called Range
public class Range<T>{
private long id;
private Money charge; //Another user type
private T min;
private T max;
.
.
.
}
The above ranges class is accessed in another class ValueRateTable:
public class ValueRateTable{
private long id;
.
.
.
List<Range<Money>> ranges = new ArrayList<Range<Money>>();
.
.
.
}
Can someone give me some direction as to where I should be looking to understand the mapping dynamics associated with this type of architecture? The idea is to have new RateTable classes, i.e. WeightRateTable, that utilize the generic quality of the Range class to pass the appropriate min and max types (for example the WeightRateTable may have List<Range<Weight>>). Any help would be appreciated.
|