| Hi, I'm trying to update from hibernate 5.2.18 to 5.4.4 and I'm facing a regression with a type in CompositeUserType that hibernate can't handle. To simplify my problem, I have the followinf entity:
public class Population {
public Matrix effective;
}
And the following xml mapping:
<?xml version="1.0" encoding="UTF-8"?>
<hibernate-mapping xmlns="http://www.hibernate.org/xsd/hibernate-mapping"
xsi:schemaLocation="http://www.hibernate.org/xsd/hibernate-mapping classpath://org/hibernate/hibernate-mapping-4.0.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
default-access="field" auto-import="true" package="fr.mycompany.mypackage">
<class name="fr.mycompany.mypackage.entities.Population" table="population" abstract="false">
<property name="recruitmentDistribution" access="field" type="fr.mycompany.mypackage.types.hibernate.MatrixType">
<column name="effective_name"/>
<column name="effective_dim"/>
<column name="effective_dimNames"/>
<column name="effective_semantics"/>
<column name="effective_data"/>
</property>
</class>
</hibernate-mapping>
Since, update, hibernate complains about a strange type into 'Matrix' object : java.util.List<?>[] It's ok, that hibernate can't handle that, but why does hibernate throw the following error for a field inside a CompositeUserType ?
|