Unit.hbm.xml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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.Unit]"
  6. name="magoffin.matt.ieat.domain.Unit"
  7. table="unit">
  8. <cache usage="read-write"/>
  9. <id access="org.jvnet.hyperjaxb2.runtime.hibernate.accessor.CheckingPropertyAccessor"
  10. name="UnitId"
  11. type="org.hibernate.type.IntegerType"
  12. unsaved-value="null">
  13. <column name="unitid" 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.Unit'" type="org.hibernate.type.StringType"/>
  19. <property access="org.jvnet.hyperjaxb2.runtime.hibernate.accessor.CheckingPropertyAccessor"
  20. name="Abbreviation">
  21. <column length="8" name="abbreviation" not-null="true"/>
  22. <type name="org.hibernate.type.StringType"/>
  23. </property>
  24. <property access="org.jvnet.hyperjaxb2.runtime.hibernate.accessor.CheckingPropertyAccessor"
  25. name="Mass">
  26. <column name="mass" not-null="true"/>
  27. <type name="org.hibernate.type.BooleanType"/>
  28. </property>
  29. <property access="org.jvnet.hyperjaxb2.runtime.hibernate.accessor.CheckingPropertyAccessor"
  30. name="ToImperial">
  31. <column name="toimperial"/>
  32. <type name="org.hibernate.type.DoubleType"/>
  33. </property>
  34. <property access="org.jvnet.hyperjaxb2.runtime.hibernate.accessor.CheckingPropertyAccessor"
  35. name="Value">
  36. <column name="Value_"/>
  37. <type name="org.hibernate.type.StringType"/>
  38. </property>
  39. <property access="org.jvnet.hyperjaxb2.runtime.hibernate.accessor.CheckingPropertyAccessor"
  40. name="SystemId">
  41. <column name="systemid"/>
  42. <type name="org.hibernate.type.IntegerType"/>
  43. </property>
  44. <property access="org.jvnet.hyperjaxb2.runtime.hibernate.accessor.CheckingPropertyAccessor"
  45. name="ToMetric">
  46. <column name="tometric"/>
  47. <type name="org.hibernate.type.DoubleType"/>
  48. </property>
  49. <property access="org.jvnet.hyperjaxb2.runtime.hibernate.accessor.CheckingPropertyAccessor"
  50. name="ToUS">
  51. <column name="tous"/>
  52. <type name="org.hibernate.type.DoubleType"/>
  53. </property>
  54. <subclass discriminator-value="magoffin.matt.ieat.domain.Unit"
  55. name="magoffin.matt.ieat.domain.impl.UnitImpl"/>
  56. </class>
  57. </hibernate-mapping>