From version < 1.2 >
edited by Jerome
on 2010/12/23
To version 1.1 >
edited by Vincent Massol
on 2010/05/31
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.jvelociter
1 +XWiki.VincentMassol
Content
... ... @@ -4,7 +4,6 @@
4 4  1. Define the actual Hibernate mapping for your XClass, in a ##hbm.xml## file (see the example below). This file should then be made available somewhere in the CLASSPATH (##WEB-INF/classes## or in your own JAR file that you put in ##WEB-INF/lib##).(((
5 5  
6 6  Example Mapping file (##mailinglist.hbm.xml##):
7 -
8 8  {{code language="xml"}}
9 9  <?xml version="1.0"?>
10 10  <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD//EN"
... ... @@ -24,7 +24,6 @@
24 24   </class>
25 25  </hibernate-mapping>
26 26  {{/code}}
27 -
28 28  )))
29 29  1. Reference your ##hbm.xml## file in the Hibernate configuration file located in ##WEB-INF/hibernate.cfg.xml##, by adding a ##mapping## element. For example:(((
30 30  {{code language="xml"}}

Get Connected