RecipeIngredientImpl.hbm.xml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE hibernate-mapping PUBLIC
  3. "-//Hibernate/Hibernate Mapping DTD 2.0//EN"
  4. "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">
  5. <hibernate-mapping
  6. auto-import="false"
  7. >
  8. <class
  9. name="magoffin.matt.ieat.domain.impl.RecipeIngredientImpl"
  10. table="RecipeIngredient"
  11. >
  12. <cache usage="read-write" />
  13. <id
  14. name="idInternal"
  15. column="idInternal"
  16. type="java.lang.String"
  17. length="32"
  18. unsaved-value="null"
  19. >
  20. <generator class="uuid.hex">
  21. <!--
  22. To add non XDoclet generator parameters, create a file named
  23. hibernate-generator-params-RecipeIngredientImpl.xml
  24. containing the additional parameters and place it in your merge dir.
  25. -->
  26. </generator>
  27. </id>
  28. <many-to-one
  29. name="ingredient"
  30. class="magoffin.matt.ieat.domain.impl.IngredientImpl"
  31. cascade="none"
  32. outer-join="auto"
  33. update="true"
  34. insert="true"
  35. column="ingredient"
  36. />
  37. <many-to-one
  38. name="unit"
  39. class="magoffin.matt.ieat.domain.impl.UnitImpl"
  40. cascade="none"
  41. outer-join="auto"
  42. update="true"
  43. insert="true"
  44. column="unit"
  45. />
  46. <property
  47. name="optional"
  48. type="boolean"
  49. update="true"
  50. insert="true"
  51. column="optional"
  52. not-null="true"
  53. />
  54. <many-to-one
  55. name="recipe"
  56. class="magoffin.matt.ieat.domain.impl.RecipeImpl"
  57. cascade="none"
  58. outer-join="auto"
  59. update="true"
  60. insert="true"
  61. column="recipe"
  62. />
  63. <property
  64. name="qualifier"
  65. type="java.lang.String"
  66. update="true"
  67. insert="true"
  68. column="qualifier"
  69. length="255"
  70. />
  71. <property
  72. name="quantity"
  73. type="double"
  74. update="true"
  75. insert="true"
  76. column="quantity"
  77. not-null="true"
  78. />
  79. <!--
  80. To add non XDoclet property mappings, create a file named
  81. hibernate-properties-RecipeIngredientImpl.xml
  82. containing the additional properties and place it in your merge dir.
  83. -->
  84. </class>
  85. </hibernate-mapping>