RecipeRating.hbm.xml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE hibernate-mapping
  3. PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
  4. <hibernate-mapping auto-import="false" default-cascade="all-delete-orphan" default-lazy="false">
  5. <class discriminator-value="[magoffin.matt.ieat.domain.RecipeRating]"
  6. name="magoffin.matt.ieat.domain.RecipeRating"
  7. table="reciperating">
  8. <cache usage="read-write"/>
  9. <id access="org.jvnet.hyperjaxb2.runtime.hibernate.accessor.CheckingPropertyAccessor"
  10. name="RatingId"
  11. type="org.hibernate.type.LongType"
  12. unsaved-value="null">
  13. <column name="ratingid" not-null="true"/>
  14. <generator class="native"/>
  15. </id>
  16. <discriminator formula="'magoffin.matt.ieat.domain.RecipeRating'"
  17. type="org.hibernate.type.StringType"/>
  18. <property access="org.jvnet.hyperjaxb2.runtime.hibernate.accessor.CheckingPropertyAccessor"
  19. name="UserId">
  20. <column name="userid" not-null="true"/>
  21. <type name="org.hibernate.type.IntegerType"/>
  22. </property>
  23. <property access="org.jvnet.hyperjaxb2.runtime.hibernate.accessor.CheckingPropertyAccessor"
  24. name="Rating">
  25. <column name="rating" not-null="true"/>
  26. <type name="org.hibernate.type.ShortType"/>
  27. </property>
  28. <property access="org.jvnet.hyperjaxb2.runtime.hibernate.accessor.CheckingPropertyAccessor"
  29. name="CreatedDate">
  30. <column name="createddate" not-null="true"/>
  31. <type name="org.jvnet.hyperjaxb2.runtime.hibernate.type.CalendarType"/>
  32. </property>
  33. <subclass discriminator-value="magoffin.matt.ieat.domain.RecipeRating"
  34. name="magoffin.matt.ieat.domain.impl.RecipeRatingImpl"/>
  35. </class>
  36. </hibernate-mapping>