Hi i got a class that has this property and which i want to map via hibernate:
Code:
private EnumMap<HeldenRassenGruppen, FertigkeitsListe> direkt_zuweisung;
i am using the class util.hibernate.GenericEnumUserType for mapping Java 5 enums
here is my hibernate code:
Code:
<map name="direkt_zuweisung" table="structure_effekte_muster_fdirektzuweisung">
<key column="fs_effektmuster" not-null="true" />
<index type="HeldenRassenGruppen" column="enum_heldenrassengruppen" />
<element type="FertigkeitsListe" column="enum_fertigkeitsliste" />
</map>
and here is the error code:
[java] 08.06.2009 19:45:35 org.hibernate.property.BasicPropertyAccessor$BasicSetter set
[java] SCHWERWIEGEND: IllegalArgumentException in class: effekte.muster.Em_BonusFertigkeiten, setter method of property: direkt_zuweisung
[java] 08.06.2009 19:45:35 org.hibernate.property.BasicPropertyAccessor$BasicSetter set
[java] SCHWERWIEGEND: expected type: java.util.EnumMap, actual value: org.hibernate.collection.PersistentMap
Has anyone a idea whats running wrong? i tried everything
greets sandler^^