Changed Makler and Person mapping to our English DB scheme
Changed Makler and Person mapping to our English DB scheme and new Estates are now saved persistent
This commit is contained in:
parent
59fb5af1c4
commit
d76deb51d2
|
@ -106,6 +106,12 @@ public class ImmoService {
|
|||
* @param m Der Makler
|
||||
*/
|
||||
public void addMakler(Makler m) {
|
||||
//Open Hibernate Session
|
||||
Session session = sessionFactory.openSession();
|
||||
|
||||
session.beginTransaction();
|
||||
session.save(m);
|
||||
session.getTransaction().commit();
|
||||
makler.add(m);
|
||||
}
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
|
||||
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
|
||||
<hibernate-mapping>
|
||||
<class name="de.dis2013.data.Makler" table="makler">
|
||||
<class name="de.dis2013.data.Makler" table="estateagent">
|
||||
<id name="id" column="id">
|
||||
<generator class="native" />
|
||||
</id>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
|
||||
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
|
||||
<hibernate-mapping>
|
||||
<class name="de.dis2013.data.Person" table="personen">
|
||||
<class name="de.dis2013.data.Person" table="person">
|
||||
<id name="id" column="id">
|
||||
<generator class="native" />
|
||||
</id>
|
||||
|
|
Loading…
Reference in New Issue