HHH-8283 JdbcSQLException with CompositeCustomType and java.util.Date

Conflicts:
	hibernate-entitymanager/src/main/java/org/hibernate/jpa/internal/QueryImpl.java
	hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/criteria/basic/BasicCriteriaUsageTest.java
HHH-8112 Added additional caveats to OSGi devguide