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


  • 相关阅读:
    下载到99.5卡顿问题定位结论
    http的get方式和post方式
    广播中等待较久出现anr问题
    eclipse运行时出现Unable to execute dex
    Android系统切换语言更新应用界面方法
    Android进程退出的方法
    杀掉顽固的android进程
    dialog屏蔽back键的方法
    操作中按了home键后广播为什么接收不了问题
    oc nil Nil
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13315131.html
Copyright © 2020-2023  润新知