Regular |
|
Joined: Mon Oct 06, 2003 7:17 am Posts: 58 Location: Switzerland
|
Hi,
when I run the schema tool the following exception occurs:
[java] 0 [main] INFO cfg.Environment - Hibernate 2.0 beta 5
[java] 30 [main] INFO cfg.Environment - hibernate.properties not found
[java] 50 [main] INFO cfg.Environment - using CGLIB reflection optimizer
[java] 50 [main] INFO cfg.Environment - JVM proxy support: true
[java] 50 [main] INFO cfg.Configuration - Mapping file: D:\ZZ_RBREITENMOSER\eduswiss\diplomarbeit\projektGastro\generated\com\ebr\middletier\model\Address.hbm.xml
[java] 1102 [main] ERROR util.XMLHelper - Error parsing XML: D:\ZZ_RBREITENMOSER\eduswiss\diplomarbeit\projektGastro\generated\com\ebr\middletier\model\Address.hbm.xml(12)
[java] org.xml.sax.SAXParseException: Attribute "dynamic-insert" must be declared for element type "class".
[java] at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
[java] at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
[java] at
....
....
My Address.hbm.xml file looks like:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 2.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">
<hibernate-mapping>
<class
name="com.ebr.middletier.model.Address"
table="ADDRESS"
dynamic-update="false"
dynamic-insert="false">
<id
name="id"
column="ADDRESS_ID"
type="java.lang.Long"
>
<generator class="native">
</generator>
</id>
<property
name="city"
type="java.lang.String"
update="true"
insert="true"
column="CITY"
/>
<property
name="country"
type="java.lang.String"
update="true"
insert="true"
column="COUNTRY"
/>
<property
name="street"
type="java.lang.String"
update="true"
insert="true"
column="STREET"
/>
<property
name="streetNumber"
type="java.lang.String"
update="true"
insert="true"
column="STREET_NUMBER"
/>
<property
name="zipCode"
type="java.lang.String"
update="true"
insert="true"
column="ZIP_CODE"
/>
<!--
To add non XDoclet property mappings, create a file named
hibernate-properties-Address.xml
containing the additional properties and place it in your merge dir.
-->
</class>
</hibernate-mapping>
The dynamic-insert attribute is set and so I dont know what the problem is.
thanks
Reto
|
|