Advertisement
Guest User

categorycombo.hbm.xml

a guest
Aug 30th, 2013
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. <?xml version="1.0"?>
  2. <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
  3. "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
  4. <hibernate-mapping>
  5. <class name="org.openmrs.module.integration.CategoryCombo" table="dhis_categorycombo">
  6. <id name="id" type="int" column="id"
  7. unsaved-value="0">
  8. <generator class="native" />
  9. </id>
  10. <discriminator column="id" insert="false" />
  11.  
  12. <property name="uuid" type="java.lang.String" column="uuid"
  13. length="38" unique="true" not-null="true"/>
  14.  
  15. <property name="name" type="java.lang.String" column="name"
  16. not-null="true" length="230" />
  17.  
  18. <property name="code" type="java.lang.String" column="code"
  19. not-null="true" length="50" />
  20.  
  21. <property name="uid" type="java.lang.String" column="uid"
  22. not-null="true" length="11" />
  23.  
  24. <set name="categoryOptions" table="dhis_catcombo_combooption" >
  25. <key column="catcombo_id" not-null="true" />
  26. <many-to-many entity-name="org.openmrs.module.integration.CategoryOption">
  27. <column name="catoption_id" not-null="true" />
  28. </many-to-many>
  29. </set>
  30.  
  31.  
  32. <set name="optionSets" inverse="false" table="dhis_catcombo_optionset" >
  33. <key column="catcombo_id" not-null="true" />
  34. <many-to-many entity-name="org.openmrs.module.integration.OptionSet">
  35. <column name="optionset_id" not-null="true" />
  36. </many-to-many>
  37. </set>
  38.  
  39.  
  40. <many-to-one name="integrationServer" class="org.openmrs.module.integration.IntegrationServer"
  41. not-null="true">
  42. <column name="server_Id" />
  43. </many-to-one>
  44. </class>
  45. </hibernate-mapping>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement