<?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"> <union-subclass entity-name="com.xyst.dinas.fileshared.datamodel.FileSharedSetting" table="xyst_dinas_file_shared_setting" extends = "com.beecode.bcp.dict.datamodel.BasicDictRequirement"> <tuplizer entity-mode="dynamic-map" class="com.beecode.bcp.store.hibernate.KObjectEntityTuplizer"/> <property name="showName" type="nstring" not-null="false"> <column name="show_name" length="100"> <comment>展示名称</comment> </column> </property> <property name="metadataName" type="nstring" not-null="false"> <column name="metadata_name" length="100"> <comment>主表元数据</comment> </column> </property> <property name="conditions" type="nstring" not-null="false"> <column name="conditions" length="2000"> <comment>主表查询条件json</comment> </column> </property> <property name="folderGroup" type="nstring" not-null="false"> <column name="folder_group" length="2000"> <comment>文件夹如何分组json</comment> </column> </property> <property name="joinMetadata" type="nstring" not-null="false"> <column name="join_metadata" length="100" > <comment>被关联的表元数据</comment> </column> </property> <property name="masterFiled" type="nstring" not-null="false"> <column name="master_filed" length="30"> <comment>主表用哪个字段关联</comment> </column> </property> <property name="joinFiled" type="nstring" not-null="false"> <column name="join_filed" length="30" > <comment>被关联表用哪个字段关联</comment> </column> </property> <property name="canShowInList" type="boolean" not-null="false"> <column name="can_show_in_list" length="1" default="true"> <comment>能否在列表上展示</comment> </column> </property> </union-subclass> </hibernate-mapping>