/web/DRCP/src/com/bluesky/drcp/persistence/dao/hibernate/map/User.hbm.xml

http://drcp.googlecode.com/ · XML · 60 lines · 46 code · 7 blank · 7 comment · 0 complexity · 1d9ab55ce0dcc5e65539f7e93fde3587 MD5 · raw file

  1. <?xml version="1.0"?>
  2. <!DOCTYPE hibernate-mapping PUBLIC
  3. "-//Hibernate/Hibernate Mapping DTD//EN"
  4. "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" >
  5. <hibernate-mapping package="com.minifcs.business">
  6. <class
  7. name="User"
  8. table="[user]"
  9. >
  10. <meta attribute="sync-DAO">false</meta>
  11. <id
  12. name="id"
  13. type="string"
  14. column="id"
  15. >
  16. <generator class="assigned"/>
  17. </id>
  18. <property
  19. name="name"
  20. column="name"
  21. type="string"
  22. not-null="true"
  23. length="100"
  24. />
  25. <property
  26. name="description"
  27. column="description"
  28. type="string"
  29. not-null="false"
  30. length="200"
  31. />
  32. <property
  33. name="password"
  34. type="string"
  35. not-null="false"
  36. length="20"
  37. />
  38. <property
  39. name="authType"
  40. column="auth_type"
  41. type="string"
  42. not-null="false"
  43. length="20"
  44. />
  45. <!--
  46. <set name="roles" table="User_Role">
  47. <key column="user_id"/>
  48. <many-to-many column="role_id"
  49. class="Role"/>
  50. </set>
  51. -->
  52. </class>
  53. </hibernate-mapping>