zTree实现地市县三级级联数据库映射

zTree实现地市县三级级联数据库映射


Province.hbm.xml:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<hibernate-mapping>
  <class name="com.gwtjs.model.Province" table="t_area_tab">
    <id access="field" name="id" type="java.lang.Long">
      <generator class="native"/>
    </id>
    <property name="provinceCode" length="20" access="field" not-null="true" type="java.lang.String">
       <column name="province_code"></column>
    </property>
    <property name="provinceName" length="50" access="field" not-null="true" type="java.lang.String">
       <column name="province_name"></column>
    </property>
    <property name="cityCode" length="20" access="field" not-null="true" type="java.lang.String">
       <column name="city_code"></column>
    </property>
    <property name="cityName" length="50" access="field" not-null="true" type="java.lang.String">
       <column name="city_name"></column>
    </property>
    <property name="countyCode" length="20" access="field" not-null="true" type="java.lang.String">
       <column name="county_code"></column>
    </property>
    <property name="countyName" length="50" access="field" not-null="true" type="java.lang.String">
       <column name="county_name"></column>
    </property>
  </class>
</hibernate-mapping>


zTree实现地市县三级级联数据库映射,布布扣,bubuko.com

zTree实现地市县三级级联数据库映射

上一篇:Linux下修改Oracle数据库字符集命令


下一篇:Oracle oledb 打包并集成到程序安装包(VC ADO访问Oracle)