Hi guys,
I'm using hibernate extensions in particular hbm2java tool.
I can't understand why It fails with this very simple hbm file:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping
PUBLIC "-//Hibernate/Hibernate Mapping DTD//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">
<hibernate-mapping>
<!-- WebObject Class -->
<class name="it.rvspm.siscotel.portal.dao.WebObject" table="WEBOBJECT">
<id name="id" type="long">
<column name="user_id" />
<generator class="native"/>
</id>
</class>
</hibernate-mapping>
Ther error is about not correct XML structure described in the DTD:
...
[java] 0 [main] ERROR hbm2java.CodeGenerator - Error parsing XML: file:/C:/java/eclipse/workspace/portal/src/java/
[java] org.xml.sax.SAXParseException: The content of element type "class" must match "(meta*,(cache|jcs-cache)?,(id
[java] at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
...
Can you see the error that I can't ?
Thanks in advance
Stefano
|