<commit_before>#### Hibernate persistence provider exporter
The purpose of this bundle is to export a standard JEE [persistence provider][1] for Hibernate. Although Hibernate itself does support OSGi,
it does not set the correct properties on the service, hence this adapter. Furthermore, this adapter also exports the dom4j packages needed
by Hibernate since the dom4j bundles from various sources need stax at a specific version (which is not needed on Java 8). 

[1]: http://docs.oracle.com/javaee/7/api/javax/persistence/spi/PersistenceProvider.html<commit_msg>Added some comments.<commit_after>#### Hibernate persistence provider exporter
The purpose of this bundle is to export a standard JEE [persistence provider][1] for Hibernate. Although Hibernate itself does support OSGi,
it does not set the correct properties on the service, hence this adapter. Furthermore, this adapter also exports the dom4j packages needed
by Hibernate since the dom4j bundles from various sources need stax at a specific version (which is not needed on Java 8). 

Note that the Hibernate OSGi remarks for the needed imports (org.hibernate.proxy, javassist.util.proxy) also apply here since the
proxy creation of Hibernate *forces* that these packages are visible from the class loader that loads the entity classes 
(which is braindead IMHO given the fact that all kinds of mechanisms exist to pass class loaders but the proxy creation doesn't use them).

To get the adapter to work, you will need, next to the required bundles of Hibernate, the JPA bundle (hibernate-entitymanager) and the OSGi bundle
(hibernate-osgi).
Checked with Hibernate 5.1.0.

[1]: http://docs.oracle.com/javaee/7/api/javax/persistence/spi/PersistenceProvider.html
{'fraction_non_alphanumeric': 0.055651176133103844, 'fraction_numerical': 0.008605851979345954, 'mean_word_length': 4.794019933554817, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '332859', 'n_tokens_mistral': 466, 'n_tokens_neox': 434, 'n_words': 234}