EthnicityImpl.hbm.xml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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.EthnicityImpl"
  10. table="Ethnicity"
  11. >
  12. <cache usage="read-write" />
  13. <id
  14. name="ethnicityId"
  15. column="ethnicityId"
  16. type="java.lang.Integer"
  17. unsaved-value="null"
  18. >
  19. <generator class="native">
  20. <param name="sequence">ethnicity_id_seq</param>
  21. <!--
  22. To add non XDoclet generator parameters, create a file named
  23. hibernate-generator-params-EthnicityImpl.xml
  24. containing the additional parameters and place it in your merge dir.
  25. -->
  26. </generator>
  27. </id>
  28. <property
  29. name="value"
  30. type="java.lang.String"
  31. update="true"
  32. insert="true"
  33. column="value"
  34. length="64"
  35. not-null="true"
  36. unique="true"
  37. />
  38. <!--
  39. To add non XDoclet property mappings, create a file named
  40. hibernate-properties-EthnicityImpl.xml
  41. containing the additional properties and place it in your merge dir.
  42. -->
  43. </class>
  44. </hibernate-mapping>