HHH-7871 Write cache should not using LOCAL flag

* Flags were not being applied in clustered environments because of
the use of classloader aware cache which was not forwarding them.
HHH-7872 - Improved L2 cache storage of "reference" data
HHH-7872 - Improved L2 cache storage of "reference" data
HHH-7797 Simplified UniqueKey creation and corrected a couple of
@UniqueConstraint bugs.
HHH-7872 corrected compiling issue
HHH-6627 HHH-7752 - Test cases
simple improvement and code format
refactor, remove redundant type cast
HHH-7561 - Fix and test
using ConcurrentHashMap for decrease synchronization
code format and fixing typo
simple change, mostly are removing those unnesserary unboxing code.
HHH-7437 - Fix and test
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