MapData.hbm.xml 1.35 KB
Newer Older
PWF-WK01\pengwufeng 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
<?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.beecode.inz.basis.datamodel.MapData" table="inz_basis_map_data" 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="assigned" />
		</id>
		<property name="title" type="nstring" not-null="false">
			<column name="title" length="100"></column>
		</property>
		<property name="projectId" type="uuid-binary" not-null="false">
			<column name="project_id" length="16"></column>
		</property>
		<property name="projectTitle" type="nstring" not-null="false">
			<column name="project_title" length="100"></column>
		</property>
		<property name="description" type="text" not-null="false">
			<column name="description"></column>
		</property>
		<property name="configInfo" type="text" not-null="false">
			<column name="configInfo"></column>
		</property>
		<property name="mapInfo" type="text" not-null="false">
			<column name="mapInfo"></column>
		</property>
	</class>
</hibernate-mapping>