SystemMenu.hbm.xml 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
  3. "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
  4. <!--
  5. Mapping file autogenerated by MyEclipse Persistence Tools
  6. -->
  7. <hibernate-mapping>
  8. <class name="com.yihu.ehr.system.model.SystemMenu" table="system_menu">
  9. <id name="id" type="java.lang.String">
  10. <column name="id" length="50"/>
  11. <generator class="uuid"/>
  12. </id>
  13. <property name="code" type="java.lang.String">
  14. <column name="code" length="50">
  15. <comment>自定义菜单代码</comment>
  16. </column>
  17. </property>
  18. <property name="name" type="java.lang.String">
  19. <column name="name" length="50" not-null="true">
  20. <comment>菜单名称</comment>
  21. </column>
  22. </property>
  23. <property name="pyCode" type="java.lang.String">
  24. <column name="py_code" length="50">
  25. <comment>拼音码</comment>
  26. </column>
  27. </property>
  28. <property name="url" type="java.lang.String">
  29. <column name="url" length="200">
  30. <comment>菜单地址</comment>
  31. </column>
  32. </property>
  33. <property name="pid" type="java.lang.String">
  34. <column name="pid" length="50" not-null="true">
  35. <comment>上级id(默认#)</comment>
  36. </column>
  37. </property>
  38. <property name="sort" type="java.lang.Integer">
  39. <column name="sort" not-null="true">
  40. <comment>排序</comment>
  41. </column>
  42. </property>
  43. <property name="remark" type="java.lang.String">
  44. <column name="remark" length="200">
  45. <comment>说明</comment>
  46. </column>
  47. </property>
  48. <property name="orgId" type="java.lang.String">
  49. <column name="org_id" length="50">
  50. <comment>机构代码(预留)</comment>
  51. </column>
  52. </property>
  53. <property name="valid" type="java.lang.String">
  54. <column name="valid" length="10" not-null="true">
  55. <comment>是否有效</comment>
  56. </column>
  57. </property>
  58. <property name="openType" type="java.lang.String">
  59. <column name="open_type" length="10" not-null="true">
  60. <comment>是否有效</comment>
  61. </column>
  62. </property>
  63. </class>
  64. </hibernate-mapping>