1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132
|
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" >
<hibernate-mapping package="com.capa.hibernate">
<class
name="Entry"
table="entry"
>
<meta attribute="sync-DAO">false</meta>
<id
name="Id"
type="integer"
column="entid"
>
<generator class="increment"/>
</id>
<property
name="Code"
column="code"
type="integer"
not-null="true"
length="10"
/>
<property
name="Amount"
column="amount"
type="float"
not-null="true"
length="8"
/>
<property
name="Piece"
column="piece"
type="integer"
not-null="false"
length="11"
/>
<property
name="Date"
column="date"
type="date"
not-null="true"
length="10"
/>
<property
name="Datets"
column="datets"
type="timestamp"
not-null="false"
length="19"
/>
<property
name="Label"
column="label"
type="string"
not-null="true"
length="255"
/>
<property
name="Type"
column="type"
type="string"
not-null="true"
length="1"
/>
<property
name="Mode"
column="mode"
type="integer"
not-null="true"
length="11"
/>
<property
name="Ident"
column="ident"
type="string"
not-null="false"
length="20"
/>
<property
name="State"
column="state"
type="java.lang.Byte"
not-null="true"
length="3"
/>
<property
name="Accid"
column="accid"
type="integer"
not-null="true"
length="11"
/>
<property
name="Prjid"
column="prjid"
type="integer"
not-null="true"
length="11"
/>
<many-to-one
name="OrgId"
column="orgid"
class="Organisation"
not-null="true"
update="false"
insert="true"
fetch="join"
>
</many-to-one>
<many-to-one
name="Usrid"
column="usrid"
class="User"
not-null="true"
update="false"
insert="true"
fetch="join"
>
</many-to-one>
</class>
</hibernate-mapping> |
Partager