Skip to content

Commit 927a25e

Browse files
committed
HHH-8112 Added additional caveats to OSGi devguide
1 parent adc6059 commit 927a25e

File tree

1 file changed

+17
-0
lines changed
  • documentation/src/main/docbook/devguide/en-US/chapters/osgi

1 file changed

+17
-0
lines changed

documentation/src/main/docbook/devguide/en-US/chapters/osgi/OSGi.xml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,23 @@
347347
considerations, collision protections, etc.
348348
</para>
349349
</listitem>
350+
<listitem>
351+
<para>
352+
Some containers (ex: Aries) always return true for
353+
<literal>PersistenceUnitInfo#excludeUnlistedClasses</literal>,
354+
even if your persistence.xml explicitly has <literal>exclude-unlisted-classes</literal> set
355+
to <literal>false</literal>. They claim it's to protect JPA providers from having to implement
356+
scanning ("we handle it for you"), even though we still want to support it in many cases. The work
357+
around is to set <literal>hibernate.archive.autodetection</literal> to, for example,
358+
<literal>hbm,class</literal>. This tells hibernate to ignore the excludeUnlistedClasses value and
359+
scan for <literal>*.hbm.xml</literal> and entities regardless.
360+
</para>
361+
</listitem>
362+
<listitem>
363+
<para>
364+
Scanning does not currently support annotated packages on <literal>package-info.java</literal>.
365+
</para>
366+
</listitem>
350367
<listitem>
351368
<para>
352369
Currently, Hibernate OSGi is primarily tested using Apache Karaf and Apache Aries JPA. Additional

0 commit comments

Comments
 (0)