[jboss-jira] [JBoss JIRA] (WFLY-12964) org.jboss.as.test.integration.jpa.cfgfile.CfgFileTestCase fails

Gail Badner (Jira) issues at jboss.org
Tue Jan 14 14:15:54 EST 2020


Gail Badner created WFLY-12964:
----------------------------------

             Summary: org.jboss.as.test.integration.jpa.cfgfile.CfgFileTestCase fails
                 Key: WFLY-12964
                 URL: https://issues.redhat.com/browse/WFLY-12964
             Project: WildFly
          Issue Type: Bug
          Components: Test Suite
            Reporter: Gail Badner
            Assignee: Gail Badner


The following fixes in Hibernate ORM 5.3.15.Final cause {{org.jboss.as.test.integration.jpa.cfgfile.CfgFileTestCase}} to fail:

https://hibernate.atlassian.net/browse/HHH-13432
https://hibernate.atlassian.net/browse/HHH-12858

There are 2 assertions in the test that fail with those fixes because the Map returned by {{EntityManagerFactory#getProperties}}:
1) does not contain a value for property {{hibernate.connection.driver_class}}.
2) contains a property for {{hibernate.connection.datasource}} that is a {{WildFlyDataSource}} instance, instead of the String {{"java:jboss/datasources/ExampleDS"}}.

For 1), Hibernate ORM removes the {{hibernate.connection.driver_class}} property from its copy because it makes no sense when a datasource is provided via {{hibernate.connection.datasource}}.

For 2), Hibernate ORM replaces the {{String}} value for {{hibernate.connection.datasource}} with the {{WildFlyDataSource}} instance.

I reviewed the JPA 2.2 specification and discussed this issue with [~smarlow], and we agreed that these were acceptable changes to the copy of properties that Hibernate ORM contains.

I have confirmed that these fixes do not cause any Jakarta standalone TCK failures.

The fix will involve replacing references to those properties with properties that Hibernate ORM does not change.



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the jboss-jira mailing list