Skip to content

Commit

Permalink
Upgraded Hibernate to 5.5.7.Final. (#3417)
Browse files Browse the repository at this point in the history
Fixed integration test.

Signed-off-by: Tomas Langer <[email protected]>
  • Loading branch information
tomas-langer authored Sep 22, 2021
1 parent 6e22eba commit a84fa8f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 13 deletions.
2 changes: 1 addition & 1 deletion dependencies/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
<version.lib.guava>30.0-jre</version.lib.guava>
<version.lib.h2>1.4.200</version.lib.h2>
<version.lib.hamcrest>1.3</version.lib.hamcrest>
<version.lib.hibernate>5.4.29.Final</version.lib.hibernate>
<version.lib.hibernate>5.5.7.Final</version.lib.hibernate>
<version.lib.hikaricp>5.0.0</version.lib.hikaricp>
<version.lib.hystrix>1.5.18</version.lib.hystrix>
<version.lib.inject>1.0</version.lib.inject>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import javax.transaction.TransactionManager;
import javax.transaction.UserTransaction;

import org.dom4j.DocumentFactory;
import org.hibernate.engine.jndi.spi.JndiService;
import org.hibernate.engine.transaction.jta.platform.internal.AbstractJtaPlatform;

Expand All @@ -37,13 +36,6 @@
*/
@ApplicationScoped
public class CDISEJtaPlatform extends AbstractJtaPlatform {
static {
// this is needed for native image, since 21.0.0
// as the document factory gets initialized lazily and that causes
// native image to fail. This way we force eager initialization
DocumentFactory.getInstance();
}

private final TransactionManager transactionManager;

private final UserTransaction userTransaction;
Expand Down
2 changes: 0 additions & 2 deletions integrations/cdi/hibernate-cdi/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@
requires jakarta.inject.api;
requires jakarta.enterprise.cdi.api;
requires org.hibernate.orm.core;
// needed only for native image, transitive dependency of hibernate-core
requires dom4j;

exports io.helidon.integrations.cdi.hibernate;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2019, 2020 Oracle and/or its affiliates.
# Copyright (c) 2019, 2021 Oracle and/or its affiliates.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -22,4 +22,4 @@ features.print-details=true
javax.sql.DataSource.test.dataSource.url=jdbc:oracle:thin:@localhost:1521/XE
javax.sql.DataSource.test.dataSource.user=system
javax.sql.DataSource.test.dataSource.password=oracle
javax.sql.DataSource.test.dataSourceClassName=oracle.jdbc.xa.client.OracleXADataSource
javax.sql.DataSource.test.dataSourceClassName=oracle.jdbc.pool.OracleDataSource

0 comments on commit a84fa8f

Please sign in to comment.