Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0"?>
- <!DOCTYPE hibernate-mapping PUBLIC
- "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
- "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" >
- <hibernate-mapping package="org.openmrs">
- <class name="AuthorizationPrincipal" table="authorization_principal" lazy="false">
- <id
- name="authorizationPrincipalId"
- type="int"
- column="authorization_principal_id"
- unsaved-value="0"
- >
- <generator class="native" />
- </id>
- <discriminator column="authorization_principal_id" insert="false" />
- <property name="name" type="java.lang.String" column="name" unique="true"
- length="38"/>
- <many-to-one
- name="creator"
- class="org.openmrs.User"
- not-null="true"
- />
- <property
- name="uuid"
- type="java.lang.String"
- column="uuid"
- length="38"
- unique="true"
- />
- <property
- name="dateCreated"
- type="java.util.Date"
- column="date_created"
- not-null="true"
- length="19"
- />
- <property
- name="policy"
- type="java.lang.String"
- column="policy"
- not-null="true"
- length="255"
- />
- <!-- Associations -->
- <set name="privileges" cascade="" lazy="false"
- table="authorization_principal_privilege">
- <cache usage="read-write"/>
- <key>
- <column name="authorization_principal_id" />
- </key>
- <many-to-many class="Privilege" column="privilege" />
- </set>
- </class>
- </hibernate-mapping>
Advertisement
Add Comment
Please, Sign In to add comment