@@ -0,0 +1,23 @@
<?xml version = "1.0" encoding = "utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD//EN"
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">

<hibernate-mapping>
<class name = "domain.Bestelling" table = "BESTELLING">

<meta attribute = "class-description">
This class contains the bestelling detail.
</meta>

<id name = "id" type = "int" column = "BESTELLING_ID">
<generator class="sequence">
<param name="sequence">bestelling_id_seq</param>
</generator>
</id>

<!-- <property name = "id" column = "CATEGORIE_ID" type = "int"/> -->
<property name = "AfleverAdres" column = "AFLEVERADRES" type = "string"/>

</class>
</hibernate-mapping>
@@ -0,0 +1,24 @@
<?xml version = "1.0" encoding = "utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD//EN"
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">

<hibernate-mapping>
<class name = "domain.Bestellingsregel" table = "BESTELLINGSREGEL">

<meta attribute = "class-description">
This class contains the bestellingregel detail.
</meta>

<id name = "id" type = "int" column = "BESTELLINGSREGEL_ID">
<generator class="sequence">
<param name="sequence">bestellingsregel_id_seq</param>
</generator>
</id>

<!-- <property name = "id" column = "CATEGORIE_ID" type = "int"/> -->
<property name = "Aantal" column = "AANTAL" type = "int"/>
<property name = "Prijs" column = "PRIJS" type = "float"/>

</class>
</hibernate-mapping>
@@ -4,19 +4,21 @@
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">

<hibernate-mapping>
<class name = "categorie" table = "CATEGORIE">
<class name = "domain.Categorie" table = "CATEGORIE">

<meta attribute = "class-description">
This class contains the categorie detail.
</meta>

<id name = "id" type = "int" column = "CATEGORIE_ID">
<generator class="native"/>
<id name = "Id" type = "int" column = "CATEGORIE_ID">
<generator class="sequence">
<param name="sequence">categorie_id_seq</param>
</generator>
</id>

<!-- <property name = "id" column = "CATEGORIE_ID" type = "int"/> -->
<property name = "naam" column = "NAAM" type = "string"/>
<property name = "omschrijving" column = "OMSCHRIJVING" type = "string"/>
<property name = "Naam" column = "NAAM" type = "string"/>
<property name = "Omschrijving" column = "OMSCHRIJVING" type = "string"/>

</class>
</hibernate-mapping>
@@ -11,7 +11,14 @@
<property name="hibernate.connection.password">tocba_2017_2d_team5</property>
<property name="hibernate.dialect">org.hibernate.dialect.Oracle10gDialect</property>
<property name="hibernate.default_schema">validate</property>
<!-- <mapping class="org.assessme.com.entity.Categorie" /> -->
<mapping class="domain.Categorie" />
<mapping class="domain.Product" />
<mapping class="domain.Aanbieding" />
<mapping class="domain.Bestellingsregel" />
<mapping class="domain.Bestelling" />
<mapping class="domain.Account" />
<mapping class="domain.Klant" />
<mapping class="domain.Adres" />

<!-- lol s-->
</session-factory>
@@ -0,0 +1,24 @@
<?xml version = "1.0" encoding = "utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD//EN"
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">

<hibernate-mapping>
<class name = "domain.Klant" table = "KLANT">

<meta attribute = "class-description">
This class contains the klant detail.
</meta>

<id name = "id" type = "int" column = "KLANT_ID">
<generator class="sequence">
<param name="sequence">klant_id_seq</param>
</generator>
</id>

<property name = "Naam" column = "NAAM" type = "string"/>
<property name = "Afbeelding" column = "AFBEELDING" type = "int"/>
<property name = "Woonadres" column = "WOONADRES" type = "string"/>

</class>
</hibernate-mapping>
@@ -0,0 +1,23 @@
<?xml version = "1.0" encoding = "utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD//EN"
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">

<hibernate-mapping>
<class name = "domain.Product" table = "PRODUCT">

<meta attribute = "class-description">
This class contains the product detail.
</meta>

<id name = "id" type = "int" column = "PRODUCT_ID">
<generator class="sequence"/>
</id>

<!-- <property name = "id" column = "CATEGORIE_ID" type = "int"/> -->
<property name = "Naam" column = "NAAM" type = "string"/>
<property name = "Prijs" column = "PRIJS" type = "float"/>
<property name = "Omschrijving" column = "OMSCHRIJVING" type = "string"/>

</class>
</hibernate-mapping>