Hello, i'm new to Hibernate and I got this error while trying to map an ArrayList :
Code:
protected List<UnitDescription> posibleUnits = new ArrayList<UnitDescription>();
Here's my mapping for it :
Code:
<list name="posibleUnits" table="POSIBLE_UNITS_GRABBER">
<key column="GRABBER_ID"></key>
<list-index column="POSITION"></list-index>
<many-to-many column="UNIT_INDEX"
class="unisave2006.units.UnitDescription">
</many-to-many>
And here's the error message :
Code:
11:51:50,421 ERROR BasicPropertyAccessor:98 - expected type: java.util.ArrayList, actual value: org.hibernate.collection.PersistentList
I tried to google it, and found out that the type PersistentList is not generic, but it doesn't help. Could somebody tell me what kind of error it is and how to fix it ? Thanks for every help.[/code]