Changed id behaviour to increment

Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
2017-04-28 16:40:17 +02:00
parent 70af878fa2
commit a731bd9967
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@
<hibernate-mapping> <hibernate-mapping>
<class name="de.dis2013.data.Makler" table="estateagent"> <class name="de.dis2013.data.Makler" table="estateagent">
<id name="id" column="id"> <id name="id" column="id">
<generator class="native" /> <generator class="increment" />
</id> </id>
<property name="name" type="string" column="name" /> <property name="name" type="string" column="name" />
<property name="adresse" type="string" column="adress" /> <property name="adresse" type="string" column="adress" />

View File

@ -5,7 +5,7 @@
<hibernate-mapping> <hibernate-mapping>
<class name="de.dis2013.data.Person" table="person"> <class name="de.dis2013.data.Person" table="person">
<id name="id" column="id"> <id name="id" column="id">
<generator class="native" /> <generator class="increment" />
</id> </id>
<property name="vorname" type="string" column="firstname" /> <property name="vorname" type="string" column="firstname" />
<property name="nachname" type="string" column="name" /> <property name="nachname" type="string" column="name" />