System.hbm.xml 1.3 KB

12345678910111213141516171819202122232425262728
  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.System]"
  6. name="magoffin.matt.ieat.domain.System"
  7. table="measurement_system">
  8. <cache usage="read-write"/>
  9. <id access="org.jvnet.hyperjaxb2.runtime.hibernate.accessor.CheckingPropertyAccessor"
  10. name="SystemId"
  11. type="org.hibernate.type.IntegerType"
  12. unsaved-value="null">
  13. <column name="systemid" 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.System'"
  19. type="org.hibernate.type.StringType"/>
  20. <property access="org.jvnet.hyperjaxb2.runtime.hibernate.accessor.CheckingPropertyAccessor"
  21. name="Value">
  22. <column name="Value_"/>
  23. <type name="org.hibernate.type.StringType"/>
  24. </property>
  25. <subclass discriminator-value="magoffin.matt.ieat.domain.System"
  26. name="magoffin.matt.ieat.domain.impl.SystemImpl"/>
  27. </class>
  28. </hibernate-mapping>