20.16. Bundle Package Imports
<div class="paragraph">
Your bundle’s manifest will need to import, at a minimum,
</div>
<div class="ulist">
- javax.persistence
org.hibernate.proxy
and javassist.util.proxy
, due to Hibernate’s ability to return proxies for lazy initialization (Javassist enhancement occurs on the entity’s ClassLoader
during runtime)
- JDBC driver package (example:
org.h2
)
org.osgi.framework
, necessary to discover the SessionFactory
(described below)
org.hibernate.*
packages, as necessary (ex: cfg, criterion, service, etc.)
</div>
</div>