Advertisement
Guest User

Untitled

a guest
May 2nd, 2016
78
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!DOCTYPE hibernate-mapping PUBLIC
  3. "-//Hibernate/Hibernate Mapping DTD//EN"
  4. "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
  5.  
  6. <hibernate-mapping>
  7. <class name="ru.lesson.models.users.Message" table="messages">
  8. <meta attribute="class-description">
  9. This class contains the message of user.
  10. </meta>
  11. <id name="id" type="int" column="uid">
  12. <generator class="identity"/>
  13. </id>
  14. <many-to-one name="user" column="user_id" class="ru.lesson.models.users.User" cascade="all" insert="false" update="false"/>
  15. <many-to-many name="sender" column="sender_id" class="ru.lesson.models.users.User" cascade="all" insert="false" update="false"/>
  16. <property name="text" column="text" type="string"/>
  17. </class>
  18. </hibernate-mapping>
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement