PlanningCycle.hbm.xml 1.23 KB
Newer Older
王衍超 committed
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
<?xml version="1.0" encoding="UTF-8"?>
<hibernate-mapping xmlns="http://www.hibernate.org/xsd/hibernate-mapping"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.hibernate.org/xsd/hibernate-mapping
		http://www.hibernate.org/xsd/hibernate-mapping/hibernate-mapping-4.0.xsd">
		
	<class entity-name="com.xyst.dinas.biz.datamodel.PlanningCycle" table="xyst_dinas_plan_cycle" optimistic-lock="version">
	
		<tuplizer entity-mode="dynamic-map" class="com.beecode.bcp.store.hibernate.KObjectEntityTuplizer"/>
		
        <id name="id" type="uuid-binary" column="id" length="16">
            <generator class="uuid2" />
        </id>
        <version name="version" type="int" column="version"/>

		<property name="cycleType" type="nstring" not-null="false">
			<column name="cycle_type" length="50"></column>
		</property>
		<property name="title" type="nstring" not-null="false">
			<column name="title" length="50"></column>
		</property>
		<property name="startTime" type="timestamp" not-null="false">
			<column name="start_time" length="3"></column>
		</property>
		<property name="endTime" type="timestamp" not-null="false">
			<column name="end_time" length="3"></column>
		</property>
		
		
	</class>
	
</hibernate-mapping>