Guest User

szrrizvi

a guest
May 30th, 2012
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. <?xml version="1.0"?>
  2. <!DOCTYPE hibernate-mapping PUBLIC
  3. "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
  4. "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" >
  5.  
  6. <hibernate-mapping package="org.openmrs">
  7.  
  8. <class name="AuthorizationPrincipal" table="authorization_principal" lazy="false">
  9.  
  10.  
  11. <id
  12. name="authorizationPrincipalId"
  13. type="int"
  14. column="authorization_principal_id"
  15. unsaved-value="0"
  16. >
  17. <generator class="native" />
  18. </id>
  19.  
  20. <discriminator column="authorization_principal_id" insert="false" />
  21.  
  22.  
  23. <property name="name" type="java.lang.String" column="name" unique="true"
  24. length="38"/>
  25.  
  26.  
  27. <many-to-one
  28. name="creator"
  29. class="org.openmrs.User"
  30. not-null="true"
  31. />
  32.  
  33. <property
  34. name="uuid"
  35. type="java.lang.String"
  36. column="uuid"
  37. length="38"
  38. unique="true"
  39. />
  40. <property
  41. name="dateCreated"
  42. type="java.util.Date"
  43. column="date_created"
  44. not-null="true"
  45. length="19"
  46. />
  47. <property
  48. name="policy"
  49. type="java.lang.String"
  50. column="policy"
  51. not-null="true"
  52. length="255"
  53. />
  54.  
  55. <!-- Associations -->
  56.  
  57. <set name="privileges" cascade="" lazy="false"
  58. table="authorization_principal_privilege">
  59. <cache usage="read-write"/>
  60. <key>
  61. <column name="authorization_principal_id" />
  62. </key>
  63. <many-to-many class="Privilege" column="privilege" />
  64. </set>
  65.  
  66. </class>
  67. </hibernate-mapping>
Advertisement
Add Comment
Please, Sign In to add comment