<?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>