Newer
Older
CosmosServer / src / main / resources / Request.hbm.xml
n-kande on 2 Jul 2019 1 KB not-uull
<?xml version="1.0"?>

<!--
  ~ Hibernate, Relational Persistence for Idiomatic Java
  ~
  ~ License: GNU Lesser General Public License (LGPL), version 2.1 or later.
  ~ See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
  -->
<!DOCTYPE hibernate-mapping PUBLIC
        "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
        "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">

<hibernate-mapping package="com.example.cosmos_serversb.entities">

    <class name="Request" table="REQUESTS">
        <id name="rId" column="RID">
        </id>
        <property name="uri" column="URI" not-null="true"/>
        <property name="date" column="DATE" not-null="true"/>
        <property name="issuerUid" column="ISSUERUID" not-null="true"/>
        <property name="product" column="PRODUCT" not-null="true"/>
        <property name="deadline" column="DEADLINE" not-null="true"/>
        <property name="location" column="LOCATION" not-null="true"/>
        <property name="done" column="DONE" not-null="true"/>
    </class>

</hibernate-mapping>