From version < 5.1 >
edited by Caleb James DeLisle
on 2012/02/13
To version < 5.2 >
edited by Vincent Massol
on 2012/02/14
< >
Change comment: Fix indentation

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.CalebJamesDeLisle
1 +XWiki.VincentMassol
Content
... ... @@ -32,7 +32,7 @@
32 32  {{/code}}
33 33  )))
34 34  1. Last, the XClass for which the mapping has been written should be set as containing a custom mapping. Unfortunately there's currently no way to set this using the XWiki Enterprise UI so you'll have to set it programmatically. The following Groovy snippet will do the trick (Remember that for Groovy code to be executed, the page that contains the code should be saved by a user having the programming right allowed on that document). Note that this could also be done in a Java component.
35 -
35 +(((
36 36  {{code language="java"}}
37 37  {{groovy}}
38 38  classDocumentName = "Mailing.MailingMemberClass";
... ... @@ -53,5 +53,6 @@
53 53  }
54 54  {{/groovy}}
55 55  {{/code}}
56 +)))
56 56  
57 57  Once these 3 steps have been done, loading and saving of your XClass will go in the table you've defined in your custom Hibernate mapping file.

Get Connected