blob: 94ae7cff1c9df499c4674058205919efef80a390 [file] [log] [blame]
<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>JPA Detection Criteria</title><meta content="DocBook XSL Stylesheets V1.76.0" name="generator"><link rel="home" href="index.html" title="Bundlor User Guide"><link rel="up" href="ch07.html" title="Chapter&nbsp;7.&nbsp;Detecting Manifest Requirements"><link rel="prev" href="ch07s05.html" title="Bundle-Classpath File Detection Criteria"><link rel="next" href="ch07s07.html" title="EclipseLink Detection Criteria"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table summary="Navigation header" width="100%"><tr><td align="left" width="20%"><a accesskey="p" href="ch07s05.html">Prev</a>&nbsp;</td><th align="center" width="60%">&nbsp;</th><td align="right" width="20%">&nbsp;<a accesskey="n" href="ch07s07.html">Next</a></td></tr></table><hr></div><div class="section" title="JPA Detection Criteria"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="detecting.jpa"></a>JPA Detection Criteria</h2></div></div></div><p>
Bundlor scans for the JPA <code class="literal">persistence.xml</code> and <code class="literal">orm.xml</code> files located in the
<code class="literal">META-INF</code> directory. If it detects this file it scans the file for a number of values that
contain class names and package names. If the class name is unqualified (i.e. has no '<code class="literal">.</code>' in
it), the classname is prepended with the content of the <code class="literal">entity-mapping</code> tag's
<code class="literal">package</code> element.
</p><div class="section" title="persistence.xml Values"><div class="titlepage"><div><div><h3 class="title"><a name="N10775"></a><code class="literal">persistence.xml</code> Values</h3></div></div></div><p>
Using XPath syntax, the following is a list of values searched for type names
</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><code class="literal">//persistence-unit/provider</code></li><li class="listitem"><code class="literal">//persistence-unit/class</code></li></ul></div><p>
</p></div><div class="section" title="orm.xml Values"><div class="titlepage"><div><div><h3 class="title"><a name="N10787"></a><code class="literal">orm.xml</code> Values</h3></div></div></div><p>
Using XPath syntax, the following is a list of values searched for type names
</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><code class="literal">//element-collection/@target-class</code></li><li class="listitem"><code class="literal">//embeddable/@class</code></li><li class="listitem"><code class="literal">//entity/@class</code></li><li class="listitem"><code class="literal">//entity-listener/@class</code></li><li class="listitem"><code class="literal">//entity-result/@entity-class</code></li><li class="listitem"><code class="literal">//id-class/@class</code></li><li class="listitem"><code class="literal">//many-to-many/@target-entity</code></li><li class="listitem"><code class="literal">//many-to-one/@target-entity</code></li><li class="listitem"><code class="literal">//map-key-class/@class</code></li><li class="listitem"><code class="literal">//mapped-superclass/@class</code></li><li class="listitem"><code class="literal">//named-native-query/@result-class</code></li><li class="listitem"><code class="literal">//one-to-many/@target-entity</code></li><li class="listitem"><code class="literal">//one-to-one/@target-entity</code></li></ul></div><p>
</p></div></div><div class="navfooter"><hr><table summary="Navigation footer" width="100%"><tr><td align="left" width="40%"><a accesskey="p" href="ch07s05.html">Prev</a>&nbsp;</td><td align="center" width="20%"><a accesskey="u" href="ch07.html">Up</a></td><td align="right" width="40%">&nbsp;<a accesskey="n" href="ch07s07.html">Next</a></td></tr><tr><td valign="top" align="left" width="40%">&nbsp;</td><td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td><td valign="top" align="right" width="40%">&nbsp;</td></tr></table></div></body></html>