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>
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。