429c8ea3c7170edd79fc29e0807f5a0697f934a9
[utils] / test / enterprise / src / site / xdoc / index.xml
1 <?xml version="1.0"?>
2 <document xmlns="http://maven.apache.org/XDOC/2.0"
3   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4   xsi:schemaLocation="http://maven.apache.org/XDOC/2.0 http://maven.apache.org/xsd/xdoc-2.0.xsd">
5
6   <properties>
7     <title>user guide</title>
8     <author email="erik@brakkee.org">Erik Brakkee</author>
9   </properties>
10   <body>
11     <section name="Introduction">
12       <p>Several utilities are provide for Java EE testing: </p>
13       <ul>
14         <li><a href="apidocs/org/wamblee/support/package-summary.html">Basic Support</a></li>
15         <li><a href="apidocs/org/wamblee/support/jndi/package-summary.html">JNDI</a></li>
16         <li><a href="apidocs/org/wamblee/support/persistence/package-summary.html">Persistence</a></li>
17       </ul>
18     </section>
19
20     <section name="Maven POM configuration">
21       <p>To configure your pom, you must configure three dependencies: </p>
22       <ul>
23         <li>The general JPA test support library.</li>
24         <li>A JPA implementation-specific library.</li>
25         <li>The dependency on your specific JPA provider.</li>
26       </ul>
27       <p> The above 'three stage rocket' is necessary because: </p>
28       <ul>
29         <li>Customizations to the persistence unit for different JPA providers might conflict and
30           might require additional JPA provider specific dependencies.</li>
31         <li>Different JPA providers can, in general, not be used within the same application. (an
32           exception is of course an OSGI environment when JPA is used as per the OSGI enterprise
33           spec). </li>
34         <li>You also want to define your own specific JPA version. </li>
35       </ul>
36       
37       <subsection name="The general JPA test support library">
38         <p>Always include the dependency below: </p>
39         <table>
40           <tr>
41             <th>groupId</th>
42             <th>artifactId</th>
43           </tr>
44           <tr>
45             <td>org.wamblee</td>
46             <td>wamblee-test-enterprise</td>
47           </tr>
48         </table>
49       </subsection>
50       
51       <subsection name="JPA implementation-specific library">
52         <p>Choose one from the choices below: </p>
53         <table>
54           <tr>
55             <th>Provider</th>
56             <th>groupId</th>
57             <th>artifactId</th>
58           </tr>
59           <tr>
60             <td>Eclipse link</td>
61             <td>org.wamblee</td>
62             <td>wamblee-test-eclipselink</td>
63           </tr>
64           <tr>
65             <td>Toplink</td>
66             <td>org.wamblee</td>
67             <td>wamblee-test-toplink</td>
68           </tr>
69           <tr>
70             <td>Hibernate (from 3.4.0.GA and higher).</td>
71             <td>org.wamblee</td>
72             <td>wamblee-test-hibernate</td>
73           </tr>
74         </table>
75       </subsection>
76     </section>
77
78   </body>
79 </document>