Hi All,
The fact that this isn't listed in the forum anywhere leads me to believe I'm probably missing something silly. Since using H3 (it seems), I have not been able to generate DDL from my mapping files. In particular, it has trouble with my user types. I tried both the "legacy" schema export task, and the 3.1.alpha5 hibernatetool. Both report the same error. These mapping files work perfectly in my application, and the hibernate.cfg.xml file works in the Hibernate Console.
Any ideas?
-Chris
Hibernate version:
3.0.5
Mapping documents:
Code:
<hibernate-mapping>
<class name="com.comerxia.core.model.Component" table="COMPONENT">
<id name="id" column="ID" type="java.lang.Long">
<generator class="sequence">
<param name="sequence">COMPONENT_SEQ</param>
</generator>
</id>
<property name="content" type="java.lang.String" update="true"
insert="true" column="CONTENT" length="50" />
<property name="activeIngredient" type="java.lang.Boolean"
update="true" insert="true" column="ACTIVEINGREDIENTFLAG" />
<property name="units"
type="com.comerxia.core.dao.hibernate.type.ComponentUnitsEnumUserType"
update="true" insert="true" column="UNITS" />
<property name="amountPerServing" type="java.lang.Double"
update="true" insert="true" column="AMOUNTPERSERVING" />
<property name="dateCreated" type="java.util.Date"
update="false" insert="false" column="DATECREATED" />
</class>
</hibernate-mapping>
Name and version of the database you are using:Oracle 10g
Debug level Hibernate log excerpt:Code:
BUILD FAILED
C:\workspace\comerxia-core\build.xml:154: org.hibernate.MappingException: Could not determine type for: com.comerxia.core.dao.hibernate.type.ComponentUnitsEnumUserType, for columns: [org.hibernate.mapping.Column(UNITS)]