I have a hbm.xml file but it's giving me this error:
Quote:
The content of element type "class" must match "(meta*,subselect?,cache?,synchronize*,comment?,tuplizer*,(id|composite-id),discriminator?,natural-id?,(version|timestamp)?,(property|many-to-one|one-to-one|component|dynamic-component|properties|any|map|set|list|bag|idbag|array|primitive-array),((join,subclass*)|joined-subclass*|union-subclass*),loader?,sql-insert?,sql-update?,sql-delete?,filter*,fetch-profile*,resultset*,(query|sql-query)*)".
and this is the xml code:
Code:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
<!-- Generated 28-nov-2011 11:25:43 by Hibernate Tools 3.4.0.CR1 -->
<hibernate-mapping>
<class name="rrosga.dae.entities.Register" schema="dae" table="registers">
<id name="idregister" type="java.lang.Integer">
<column name="idregister"/>
<generator class="identity"/>
</id>
<property name="date_start" type="java.util.Date">
<column name="date_start"/>
</property>
<property name="date_end" type="java.util.Date">
<column name="date_end"/>
</property>
<property name="city" type="java.lang.Short">
<column name="city"/>
</property>
<property name="employee" type="java.lang.Integer">
<column name="employee"/>
</property>
</class>
</hibernate-mapping>
I've read in other posts that I need to set an id tag but i think i have it right, am i missing something ?