Using Hibernate 3.2.4.sp1 with jboss-4.2.3.GA
Is use of component inside dynamic-component not supported?
When trying to add a component as element in a dynamic-component, I get an Exception:
javax.persistence.PersistenceException: org.hibernate.PropertyNotFoundException: Could not find a getter for myMapKey in class java.util.Map
Code:
Class X {
Map m;
}
Class Y {
String prop1;
}
<dynamic-component name="m" insert="false" update="false">
<component name="myMapKey" insert="false" update="false" class="Y">
<property name="prop1"/>
</component>
</dynamic-component>
Using a simple property element works, but I would need a mapping to component class Y
Code:
<dynamic-component name="m" insert="false" update="false">
<property name="myMapKey" column="prop1" type="java.lang.String"/>
</dynamic-component>
thx, Jürgen