Hibernate version:
3.0
Name and version of the database you are using:
MySQL 4.1
Hi,
I had a simple class which had one User Type named state. Here is a mapping file fragment:
Code:
private State state;
...... getter/setter .........
<property name="state" column="STATE">
<type name="jyaga.datawork.valuelabel.ValueLabelUserType">
<param name="class">jyaga.datawork.type.State</param>
</type>
</property>
Now I need to have List of States in this class instead of one state:
Code:
private List<State> states;
......... getter/setter .........
If it would be just String (List<String>) it would be simple:
Code:
<bag name="states" table="good_faith_estimate_state">
<key column="CORR_ID"/>
<element column="STATE" type="string"/>
</bag>
But how to map User Type with parameter in this case?
Please help,
thanks,
Eugene