HHH-7612 - rollback the chage in 4.1 branch
HHH-1168 - Problem combining locking and paging on Oracle
(cherry picked from commit 6e71a0907eba1a83ef50f3f6d4bf860c7df292e5)
HHH-1168 - Problem combining locking and paging on Oracle
(cherry picked from commit 21ade0c798ed0fbb1444339af396325f324f94cb)
HHH-7835 Inefficient implementation of
JarVisitorFactory.getBytesFromInputStream

Conflicts:
	hibernate-entitymanager/src/main/java/org/hibernate/jpa/packaging/internal/JarVisitorFactory.java
	hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/packaging/JarVisitorTest.java
	hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/packaging/PackagingTestCase.java
HHH-7835 Inefficient implementation of
JarVisitorFactory.getBytesFromInputStream

Conflicts:
	hibernate-entitymanager/src/main/java/org/hibernate/jpa/packaging/internal/JarVisitorFactory.java
HHH-7835 Updated the largeJar test to be completely isolated

Conflicts:
	hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/packaging/PackagingTestCase.java
HHH-7840 org.hibernate.id.IncrementGenerator very slow
HHH-7839  Documentation bug at
SimpleNaturalIdLoadAccess.getReference(Object naturalIdValue)
HHH-7826 - Generate 'unique' constraints in stable order
HHH-7813 - Fixed the mistakes in code examples. All the examples was in chapter 4 (Batch processing).
HHH-7811 grammar error in devguide for HB
Changed the error handling for LazyInitializationException to go through the throwLazyInitializationException method so that the collection role is reported.
HHH-7849 Unable to join on an embedded field
HHH-7849 Formatting
HHH-7849 Cleaner fix.  Added additional regression test.

Conflicts:
	hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/criteria/components/ComponentCriteriaTest.java
HHH-7849 correct imports
HHH-7850 BulkAccessorFactory Java 7 verify error resolved by JASSIST-163 BulkAccessorFactory.java.diff2 patch from Shigeru Chiba.
HHH-7747 - Fixes CNFE regression for runtime field level class
enhancing. Also removes the usage of ClassPool.getDefault() and
creates a new ClassPool on each usage.

HHH-7747 - Add the entity class to the ClassPool to support modular
classloading like OSGI. Remove unused import in FieldTransformer.

HHH-7747 - Enhanced test to ensure that class enhancement sees all
classes of an entity. Added test to ensure that StackMapTables are
non-null for Javassist added methods.
HHH-7747 check if the code attribute is null when building the StackMapTable
HHH-7435 Performance bottleneck on Javassist