Advertisement
Guest User

Untitled

a guest
Nov 7th, 2011
85
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="Jigoku.Core" namespace="Jigoku.Core.Entities">
  3.     <class name="User" table="Users">
  4.         <id name="Uid">
  5.             <column name="Uid"/>
  6.             <generator class="sequence">
  7.                 <param name="Users_Uid_seq"/>
  8.             </generator>
  9.         </id>
  10.         <property name="NickName" type="text" not-null="true"/>
  11.         <property name="Password" type="text" not-null="true"/>
  12.         <property name="PrimaryMail" type="text" column="email" not-null="true"/>
  13.         <property name="UserPhoto" type="character varying[500]"/>
  14.         <list name="Contacts" cascade="all-delete-orphans">
  15.             <key column="UserId" on-delete="cascade"/>
  16.             <index column="Id"/>
  17.             <one-to-many class="Contacts"/>
  18.         </list>
  19.     </class>
  20. </hibernate-mapping>
  21.  
Advertisement
RAW Paste Data Copied
Advertisement