TWiki . Catch0405 . Mappingfile

<?xml version="1.0"?>
   <!DOCTYPE hibernate-mapping PUBLIC
      "-//Hibernate/Hibernate Mapping DTD//EN"
      "http://hibernate.sourceforge.net/hibernate-mapping.dtd">

   <hibernate-mapping>
      <class name="User1" table="genericTable">
                                 
                        <!-- A 32 hex character is our surrogate key. It's automatically
                             generated by Hibernate with the UUID pattern. -->
                        <id name="id" type="string" unsaved-value="null" >
                            <column name="id" sql-type="varchar(20)" not-null="true"/>
                            <generator class="uuid.hex"/>
                        </id>


                        <!-- comment -->
                        <property name="name">
                        <column name="name" length="16" not-null="true"/>
                        </property>

                        <property name="sex"/>
                        <property name="birth"/>
                        <property name="death"/>
                        
      </class>
   </hibernate-mapping>

-- OtherDenisRaschpichler - 14 Dec 2004

----- Revision r1.1 - 14 Dec 2004 - 16:40 - OtherDenisRaschpichler
Copyright © 1999-2003 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.

This website has been archived and is no longer maintained.