Skip to content

Commit

Permalink
deps: bump hibernate.version from 6.3.1.Final to 6.5.1.Final in /goog…
Browse files Browse the repository at this point in the history
…le-cloud-spanner-hibernate-dialect (#1037)

* deps: bump hibernate.version in /google-cloud-spanner-hibernate-dialect

Bumps `hibernate.version` from 6.3.1.Final to 6.5.1.Final.

Updates `org.hibernate.orm:hibernate-core` from 6.3.1.Final to 6.5.1.Final
- [Release notes](https://github.com/hibernate/hibernate-orm/releases)
- [Changelog](https://github.com/hibernate/hibernate-orm/blob/6.5.1/changelog.txt)
- [Commits](hibernate/hibernate-orm@6.3.1...6.5.1)

Updates `org.hibernate.orm:hibernate-ant` from 6.3.1.Final to 6.5.1.Final
- [Release notes](https://github.com/hibernate/hibernate-orm/releases)
- [Changelog](https://github.com/hibernate/hibernate-orm/blob/6.5.1/changelog.txt)
- [Commits](hibernate/hibernate-orm@6.3.1...6.5.1)

Updates `org.hibernate.orm:hibernate-jcache` from 6.3.1.Final to 6.5.1.Final
- [Release notes](https://github.com/hibernate/hibernate-orm/releases)
- [Changelog](https://github.com/hibernate/hibernate-orm/blob/6.5.1/changelog.txt)
- [Commits](hibernate/hibernate-orm@6.3.1...6.5.1)

Updates `org.hibernate.orm:hibernate-testing` from 6.3.1.Final to 6.5.1.Final
- [Release notes](https://github.com/hibernate/hibernate-orm/releases)
- [Changelog](https://github.com/hibernate/hibernate-orm/blob/6.5.1/changelog.txt)
- [Commits](hibernate/hibernate-orm@6.3.1...6.5.1)

---
updated-dependencies:
- dependency-name: org.hibernate.orm:hibernate-core
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: org.hibernate.orm:hibernate-ant
  dependency-type: direct:development
  update-type: version-update:semver-minor
- dependency-name: org.hibernate.orm:hibernate-jcache
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: org.hibernate.orm:hibernate-testing
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* chore: update test to match new Hibernate behavior

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Knut Olav Løite <[email protected]>
  • Loading branch information
dependabot[bot] and olavloite authored May 16, 2024
1 parent de96fc6 commit 5be5aca
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,13 @@

import jakarta.persistence.Entity;
import java.io.Serializable;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.JdbcTypeCode;
import org.hibernate.type.SqlTypes;

@Entity
// Use DynamicUpdate to prevent the JSON column from being updated everytime this entity is updated.
@DynamicUpdate
public class Venue extends AbstractNonInterleavedEntity {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,9 @@ public static void setupQueryResults() {
Statement.of(
"insert into venue (created_at,description,name,updated_at,id) values (@p1,@p2,@p3,@p4,@p5)"),
1L));
mockSpanner.putPartialStatementResult(
StatementResult.update(
Statement.of("update venue set description=@p1,updated_at=@p2 where id=@p3"), 1L));
mockSpanner.putPartialStatementResult(
StatementResult.update(
Statement.of(
Expand Down Expand Up @@ -682,6 +685,11 @@ public void testRunApplication() {
35,
mockSpanner.getRequestsOfType(ExecuteSqlRequest.class).stream()
.filter(request -> !request.getSql().equals("SELECT 1"))
.filter(
request ->
!request
.getSql()
.equals("update venue set description=@p1,updated_at=@p2 where id=@p3"))
.count());
assertEquals(6, mockSpanner.countRequestsOfType(ExecuteBatchDmlRequest.class));
assertEquals(11, mockSpanner.countRequestsOfType(CommitRequest.class));
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<java.version>11</java.version>
<hibernate.version>6.3.1.Final</hibernate.version>
<hibernate.version>6.5.1.Final</hibernate.version>
<spanner-jdbc-driver.version>2.18.0</spanner-jdbc-driver.version>
<log4j.version>2.23.1</log4j.version>

Expand Down

0 comments on commit 5be5aca

Please sign in to comment.