HHH-6627 HHH-7752 - Test cases
HHH-7561 - Fix and test ( from Lukasz )
HHH-7437 - Fix and test
(cherry picked from commit bcf73bd32c2af2dc2dcb6e160f4b39e23c532253)
HHH-7866 Avoid redundant log level checking in StandardQueryCache
HHH-7866 Cleanup and added a few more checks
HHH-6643 Criteria doesn't support a chaining of 2 not restrictions (sql
= not not criterion)
HHH-3458 Register postgres random() function as "rand" in PostgresSQLDialect
HHH-6643 Corrected intermittent test failure
HHH-2448 Generate identical column aliases among cluster
HHH-7797 Deprecating mistakenly removed Dialect methods
HHH-6643 Overrode getNotExpression in DB2Dialect
HHH-7911 NPE in TwoPhaseLoad#initializeEntity
HHH-7918 - Fix and test
HHH-7918 - Completely recalculate entity state on merge
HHH-2721 PostgreSQLDialect: function md5() always returns a string value
HHH-7781 - Fix and test
(cherry picked from commit 03520b928f1c69dbf128d083f31b13dc03f7d314)
HHH-5869 - Add suport for nationalized character mappings
(cherry picked from commit e7b188c924d08654be9fb53a46439692af664f6c)

Conflicts:

	hibernate-core/src/main/java/org/hibernate/cfg/AvailableSettings.java

Plus, added all nationalized variants of the character-based SqlTypeDescriptors
HHH-1917 Bulk Delete on the owning side of a ManyToMany relation needs
to delete corresponding rows from the JoinTable

Conflicts:
	hibernate-core/src/test/java/org/hibernate/test/hql/BulkManipulationTest.java
HHH-1917 updated comment
HHH-2951 Restrictions.eq when passed null, should create a NullRestriction