以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 DTD/XML Schema 』  (http://bbs.xml.org.cn/list.asp?boardid=23)
----  [求助]谁能帮我写下这份XML的DTD文档不  (http://bbs.xml.org.cn/dispbbs.asp?boardid=23&rootid=&id=62161)


--  作者:ybzdjmwxbhn
--  发布时间:5/4/2008 8:41:00 PM

--  [求助]谁能帮我写下这份XML的DTD文档不
<?xml version="1.0"?>
<hibernate-mapping package="xtu.edu.mis.organization.entity">
 <class name="College" table="IF_DWB" lazy="false">
  <id name="id" type="string" column="dwbh">
   <generator class="assigned"/>
  </id>
  <property name="name" type="string">
   <column name="dwmc"/>
  </property>
  <property name="bbFlag" type="string">
   <column name="bbbz"/>
  </property>
  <property name="yxFlag" type="string">
   <column name="yxbz"/>
  </property>
 </class>
 
 <class name="Class" table="JB_BJB" lazy="false">
  <id name="id" type="string" column="bh">
   <generator class="assigned"/>
  </id>
  <property name="name" type="string">
   <column name="bjmc"/>
  </property>
  <property name="year" type="string">
   <column name="nj"/>
  </property>
  <many-to-one name="college" column="yxsh" class="College" />
 </class>
 
 <class name="Teacher" table="V_TEACHER" lazy="false">
  <id name="id" type="string" column="ZGH">
   <generator class="assigned"/>
  </id>
  <property name="name" type="string">
   <column name="XM"/>
  </property>
  <property name="password" type="string">
   <column name="MM"/>
  </property>
  <property name="flag" type="string">
   <column name="sfwp"/>
  </property>
  <many-to-one name="unit" column="yxsh" class="College" />
  <set name="roles" table="T_TEACHER_ROLE" lazy="true" inverse="true">
   <key column="teacherId"/>
   <many-to-many class="xtu.edu.mis.security.entity.Role" column="roleId"/>
  </set>
 </class>
 
 <class name="Student" table="V_STUDENT" lazy="false">
  <id name="id" type="string" column="XH">
   <generator class="assigned"/>
  </id>
  <property name="name" type="string">
   <column name="XM"/>
  </property>
  <property name="password" type="string">
   <column name="MM"/>
  </property>
  <property name="bbFlag" type="string">
   <column name="bbbz"/>
  </property>
  <many-to-one name="unit" column="BH" class="Class" />
  <set name="roles" table="T_STUDENT_ROLE" lazy="true" inverse="true">
   <key column="studentId"/>
   <many-to-many class="xtu.edu.mis.security.entity.Role" column="roleId"/>
  </set>
 </class>
</hibernate-mapping>

谁能具体解释下这段的含义
<many-to-one name="unit" column="BH" class="Class" />
  <set name="roles" table="T_STUDENT_ROLE" lazy="true" inverse="true">
   <key column="studentId"/>
   <many-to-many class="xtu.edu.mis.security.entity.Role" column="roleId"/>
  </set>


W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
78.125ms