User.hbm.xml 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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.User]"
  6. name="magoffin.matt.ieat.domain.User"
  7. table="users">
  8. <cache usage="read-write"/>
  9. <id access="org.jvnet.hyperjaxb2.runtime.hibernate.accessor.CheckingPropertyAccessor"
  10. name="UserId"
  11. type="org.hibernate.type.IntegerType"
  12. unsaved-value="null">
  13. <column name="userid" 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.User'" type="org.hibernate.type.StringType"/>
  19. <property access="org.jvnet.hyperjaxb2.runtime.hibernate.accessor.CheckingPropertyAccessor"
  20. name="Email">
  21. <column length="128" name="email" not-null="true"/>
  22. <type name="org.hibernate.type.StringType"/>
  23. </property>
  24. <property access="org.jvnet.hyperjaxb2.runtime.hibernate.accessor.CheckingPropertyAccessor"
  25. name="Language">
  26. <column length="3" name="language" not-null="true"/>
  27. <type name="org.hibernate.type.StringType"/>
  28. </property>
  29. <property access="org.jvnet.hyperjaxb2.runtime.hibernate.accessor.CheckingPropertyAccessor"
  30. name="CreatedDate">
  31. <column name="createddate" not-null="true"/>
  32. <type name="org.jvnet.hyperjaxb2.runtime.hibernate.type.CalendarType"/>
  33. </property>
  34. <property access="org.jvnet.hyperjaxb2.runtime.hibernate.accessor.CheckingPropertyAccessor"
  35. name="LastLoginDate">
  36. <column name="lastlogindate"/>
  37. <type name="org.jvnet.hyperjaxb2.runtime.hibernate.type.CalendarType"/>
  38. </property>
  39. <property access="org.jvnet.hyperjaxb2.runtime.hibernate.accessor.CheckingPropertyAccessor"
  40. name="Country">
  41. <column length="3" name="country" not-null="true"/>
  42. <type name="org.hibernate.type.StringType"/>
  43. </property>
  44. <property access="org.jvnet.hyperjaxb2.runtime.hibernate.accessor.CheckingPropertyAccessor"
  45. name="Login">
  46. <column length="32" name="login" not-null="true"/>
  47. <type name="org.hibernate.type.StringType"/>
  48. </property>
  49. <property access="org.jvnet.hyperjaxb2.runtime.hibernate.accessor.CheckingPropertyAccessor"
  50. name="AccessLevel">
  51. <column name="accesslevel"/>
  52. <type name="org.hibernate.type.IntegerType"/>
  53. </property>
  54. <property access="org.jvnet.hyperjaxb2.runtime.hibernate.accessor.CheckingPropertyAccessor"
  55. name="Name">
  56. <column length="64" name="user_name" not-null="true"/>
  57. <type name="org.hibernate.type.StringType"/>
  58. </property>
  59. <property access="org.jvnet.hyperjaxb2.runtime.hibernate.accessor.CheckingPropertyAccessor"
  60. name="Password">
  61. <column length="64" name="password" not-null="true"/>
  62. <type name="org.hibernate.type.StringType"/>
  63. </property>
  64. <subclass discriminator-value="magoffin.matt.ieat.domain.User"
  65. name="magoffin.matt.ieat.domain.impl.UserImpl"/>
  66. </class>
  67. </hibernate-mapping>