RecipeComment.hbm.xml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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.RecipeComment]"
  6. name="magoffin.matt.ieat.domain.RecipeComment"
  7. table="recipecomment">
  8. <cache usage="read-write"/>
  9. <id access="org.jvnet.hyperjaxb2.runtime.hibernate.accessor.CheckingPropertyAccessor"
  10. name="CommentId"
  11. type="org.hibernate.type.LongType"
  12. unsaved-value="null">
  13. <column name="commentid" not-null="true"/>
  14. <generator class="native">
  15. <param name="sequence">hibernate_integer_seq</param>
  16. </generator>
  17. </id>
  18. <discriminator formula="'magoffin.matt.ieat.domain.RecipeComment'"
  19. type="org.hibernate.type.StringType"/>
  20. <property access="org.jvnet.hyperjaxb2.runtime.hibernate.accessor.CheckingPropertyAccessor"
  21. name="UserId">
  22. <column name="userid" not-null="true"/>
  23. <type name="org.hibernate.type.IntegerType"/>
  24. </property>
  25. <property access="org.jvnet.hyperjaxb2.runtime.hibernate.accessor.CheckingPropertyAccessor"
  26. name="CreatedDate">
  27. <column name="createddate" not-null="true"/>
  28. <type name="org.jvnet.hyperjaxb2.runtime.hibernate.type.CalendarType"/>
  29. </property>
  30. <property access="org.jvnet.hyperjaxb2.runtime.hibernate.accessor.CheckingPropertyAccessor"
  31. name="Value">
  32. <column name="Value_"/>
  33. <type name="org.hibernate.type.StringType"/>
  34. </property>
  35. <subclass discriminator-value="magoffin.matt.ieat.domain.RecipeComment"
  36. name="magoffin.matt.ieat.domain.impl.RecipeCommentImpl"/>
  37. </class>
  38. </hibernate-mapping>