Skip to content

Commit

Permalink
bump: hibernate-core 6.3.1.Final (was 5.6.15.Final) (#1020)
Browse files Browse the repository at this point in the history
* bump: hibernate-core 6.3.1.Final (was 5.6.15.Final)

* javax.persistence -> jakarta.persistence

---------

Co-authored-by: Johan Andrén <johan@markatta.com>
  • Loading branch information
scala-steward and johanandren authored Oct 12, 2023
1 parent 3ee2a00 commit d0f2d6f
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions examples/src/test/java/jdocs/jdbc/HibernateJdbcSession.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
import akka.projection.jdbc.JdbcSession;
// #hibernate-session-imports
import org.hibernate.Session;
import javax.persistence.EntityManager;
import javax.persistence.EntityTransaction;
import jakarta.persistence.EntityManager;
import jakarta.persistence.EntityTransaction;
import java.sql.Connection;
import java.sql.SQLException;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
package jdocs.jdbc;

// #hibernate-factory-imports
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import jakarta.persistence.EntityManagerFactory;
import jakarta.persistence.Persistence;

// #hibernate-factory-imports

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.persistence.EntityManager;
import jakarta.persistence.EntityManager;

// #jdbc-session-imports
import akka.projection.jdbc.JdbcSession;
Expand Down
2 changes: 1 addition & 1 deletion examples/src/test/java/jdocs/kafka/KafkaDocExample.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@

import jdocs.jdbc.HibernateJdbcSession;

import javax.persistence.EntityManager;
import jakarta.persistence.EntityManager;

public interface KafkaDocExample {

Expand Down
8 changes: 4 additions & 4 deletions examples/src/test/resources/META-INF/persistence.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
version="2.0">
<persistence-unit name="akka-projection-hibernate">
<properties>
<property name="javax.persistence.jdbc.driver" value="org.h2.Driver"/>
<property name="javax.persistence.jdbc.url" value="jdbc:h2:mem:hibernate-test;OPTIMIZE_REUSE_RESULTS=FALSE"/>
<property name="javax.persistence.jdbc.user" value="sa"/>
<property name="javax.persistence.jdbc.password" value=""/>
<property name="jakarta.persistence.jdbc.driver" value="org.h2.Driver"/>
<property name="jakarta.persistence.jdbc.url" value="jdbc:h2:mem:hibernate-test;OPTIMIZE_REUSE_RESULTS=FALSE"/>
<property name="jakarta.persistence.jdbc.user" value="sa"/>
<property name="jakarta.persistence.jdbc.password" value=""/>
<!-- field access, no setters -->
<property name="hibernate.default-access" value="field"/>
<!-- avoid lazy loading -->
Expand Down
2 changes: 1 addition & 1 deletion examples/src/test/scala/docs/kafka/KafkaDocExample.scala
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import akka.projection.scaladsl.SourceProvider
import akka.stream.scaladsl.Source
import com.typesafe.config.Config
import com.typesafe.config.ConfigFactory
import javax.persistence.EntityManager
import jakarta.persistence.EntityManager
import jdocs.jdbc.HibernateJdbcSession
import jdocs.jdbc.HibernateSessionFactory
import org.slf4j.LoggerFactory
Expand Down
2 changes: 1 addition & 1 deletion project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ object Dependencies {
}

object Examples {
val hibernate = "org.hibernate" % "hibernate-core" % "5.6.15.Final"
val hibernate = "org.hibernate" % "hibernate-core" % "6.3.1.Final"

val akkaPersistenceTyped = "com.typesafe.akka" %% "akka-persistence-typed" % Versions.akka
val akkaClusterShardingTyped = "com.typesafe.akka" %% "akka-cluster-sharding-typed" % Versions.akka
Expand Down

0 comments on commit d0f2d6f

Please sign in to comment.