I have another idea.
You write
Quote:
<property first="middle" column="middle" type="string"/>
Correct is name instead of first.
Code:
<property name="middle" column="middle" type="string"/>
Here is a hmb.xml file from me.
Code:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping default-lazy="false" auto-import="false">
<class name="de.waldhausweg7.model.Room" table="Room">
<id name="roomId" type="int">
<generator class="assigned" />
</id>
<property name="basicRent" column="basicRent" />
<property name="additionalCosts" column="additionalCosts" />
<property name="livingSpace" column="livingSpace" />
<property name="comment" column="comment" />
<!-- 1:n-Beziehung zu Miete -->
<set name="rents" cascade="none" lazy="true">
<key column="roomId" />
<one-to-many class="de.waldhausweg7.model.Rent" />
</set>
</class>
</hibernate-mapping>