码迷,mamicode.com
首页 > 数据库 > 详细

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

时间:2014-05-11 02:00:31      阅读:409      评论:0      收藏:0      [点我收藏+]

标签:mysql   hibernate   struts2   java   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实现地市县三级级联数据库映射

标签:mysql   hibernate   struts2   java   ztree   

原文地址:http://blog.csdn.net/you23hai45/article/details/25513141

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!