MealRecipeImpl.hbm.xml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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.MealRecipeImpl"
  10. table="MealRecipe"
  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-MealRecipeImpl.xml
  24. containing the additional parameters and place it in your merge dir.
  25. -->
  26. </generator>
  27. </id>
  28. <many-to-one
  29. name="recipe"
  30. class="magoffin.matt.ieat.domain.impl.RecipeImpl"
  31. cascade="none"
  32. outer-join="auto"
  33. update="true"
  34. insert="true"
  35. column="recipe"
  36. />
  37. <many-to-one
  38. name="course"
  39. class="magoffin.matt.ieat.domain.impl.CourseImpl"
  40. cascade="none"
  41. outer-join="auto"
  42. update="true"
  43. insert="true"
  44. column="course"
  45. />
  46. <property
  47. name="quantity"
  48. type="double"
  49. update="true"
  50. insert="true"
  51. column="quantity"
  52. not-null="true"
  53. />
  54. <!--
  55. To add non XDoclet property mappings, create a file named
  56. hibernate-properties-MealRecipeImpl.xml
  57. containing the additional properties and place it in your merge dir.
  58. -->
  59. </class>
  60. </hibernate-mapping>