HHH-12395 hibernate-jipijapa should set new defaults for JPA 2.2 specification compliance

This commit is contained in:
Scott Marlow 2018-03-15 12:53:32 -04:00 committed by Steve Ebersole
parent 2a1a85383e
commit 9c97b987e1
1 changed files with 9 additions and 0 deletions

View File

@ -71,6 +71,15 @@ public class HibernatePersistenceProviderAdaptor implements PersistenceProviderA
if (!pu.getProperties().containsKey(AvailableSettings.SESSION_FACTORY_NAME)) {
putPropertyIfAbsent(pu, properties, AvailableSettings.SESSION_FACTORY_NAME_IS_JNDI, Boolean.FALSE);
}
// the following properties were added to Hibernate ORM 5.3, for JPA 2.2 spec compliance.
putPropertyIfAbsent(pu, properties, AvailableSettings.PREFER_GENERATOR_NAME_AS_DEFAULT_SEQUENCE_NAME, true);
putPropertyIfAbsent(pu, properties, AvailableSettings.JPA_TRANSACTION_COMPLIANCE, true);
putPropertyIfAbsent(pu, properties, AvailableSettings.JPA_CLOSED_COMPLIANCE, true);
putPropertyIfAbsent(pu, properties, AvailableSettings.JPA_QUERY_COMPLIANCE, true);
putPropertyIfAbsent(pu, properties, AvailableSettings.JPA_LIST_COMPLIANCE, true);
putPropertyIfAbsent(pu, properties, AvailableSettings.JPA_CACHING_COMPLIANCE, true);
// end of properties added for JPA 2.2 spec compliance.
}
@Override