diff --git a/documentation/src/main/docbook/devguide/en-US/chapters/osgi/OSGi.xml b/documentation/src/main/docbook/devguide/en-US/chapters/osgi/OSGi.xml index a55ae3bab5..dcb1279727 100644 --- a/documentation/src/main/docbook/devguide/en-US/chapters/osgi/OSGi.xml +++ b/documentation/src/main/docbook/devguide/en-US/chapters/osgi/OSGi.xml @@ -347,6 +347,23 @@ considerations, collision protections, etc. + + + Some containers (ex: Aries) always return true for + PersistenceUnitInfo#excludeUnlistedClasses, + even if your persistence.xml explicitly has exclude-unlisted-classes set + to false. They claim it's to protect JPA providers from having to implement + scanning ("we handle it for you"), even though we still want to support it in many cases. The work + around is to set hibernate.archive.autodetection to, for example, + hbm,class. This tells hibernate to ignore the excludeUnlistedClasses value and + scan for *.hbm.xml and entities regardless. + + + + + Scanning does not currently support annotated packages on package-info.java. + + Currently, Hibernate OSGi is primarily tested using Apache Karaf and Apache Aries JPA. Additional