should have been: <property name="GvtFunctionClass" column="GVT_FUNC_CLASS" type="string" update="false" insert="false"/>
Obviously, Hibernate reported an error - but it wasn't every helpful: 2006-07-05 09:02:18,750 ERROR [org.jboss.hibernate.jmx.Hibernate] Starting failed jboss.jca:service=HbmEmployeeWarehouse org.hibernate.MappingException: Could not determine type for: , for columns: [org.hibernate.mapping.Column(string)] at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:265)
Two Things:
1) The error is in the HbmPsJobCodeTable.hbm.xml file - NOT the HbmEmployeeWarehouse.hbm.xml file. 2) Missing substitution values for the error string "Could not determine type for: , for columns: " apparently aren't making it into the string prior to its output. Perhaps 1 is related to 2?
Thanks.
Activity
Steve EbersoleJanuary 19, 2007 at 6:48 PM
No, the substitution did occur. The "problem" is that it is substituting the empty string that you gave (type="")
This table has 122 fields. I made a typo in the definition of a field thusly:
<property name="GvtFunctionClass" column="string" type="" update="false" insert="false"/>
should have been:
<property name="GvtFunctionClass" column="GVT_FUNC_CLASS" type="string" update="false" insert="false"/>
Obviously, Hibernate reported an error - but it wasn't every helpful:
2006-07-05 09:02:18,750 ERROR [org.jboss.hibernate.jmx.Hibernate] Starting failed jboss.jca:service=HbmEmployeeWarehouse
org.hibernate.MappingException: Could not determine type for: , for columns: [org.hibernate.mapping.Column(string)]
at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:265)
Two Things:
1) The error is in the HbmPsJobCodeTable.hbm.xml file - NOT the HbmEmployeeWarehouse.hbm.xml file.
2) Missing substitution values for the error string "Could not determine type for: , for columns: " apparently aren't making it into the string prior to its output. Perhaps 1 is related to 2?
Thanks.