-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DBZ-7388 Fix Hibernate API deprecated usages
- Loading branch information
Showing
10 changed files
with
99 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
...e/integration-tests/src/test/java/io/debezium/outbox/reactive/quarkus/it/TestAsserts.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* Copyright Debezium Authors. | ||
* | ||
* Licensed under the Apache Software License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0 | ||
*/ | ||
package io.debezium.outbox.reactive.quarkus.it; | ||
|
||
import static org.junit.Assert.assertEquals; | ||
import static org.junit.Assert.assertNull; | ||
|
||
import org.hibernate.persister.entity.EntityPersister; | ||
|
||
/** | ||
* @author Chris Cranford | ||
*/ | ||
public class TestAsserts { | ||
|
||
private TestAsserts() { | ||
} | ||
|
||
public static void assertIsType(EntityPersister persister, Class<?> type, String attributeName) { | ||
assertEquals(type.getName(), persister.findAttributeMapping(attributeName).getJavaType().getTypeName()); | ||
} | ||
|
||
public static void assertHasNoMapping(EntityPersister persister, String attributeName) { | ||
assertNull(persister.findAttributeMapping(attributeName)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
...kus-outbox/integration-tests/src/test/java/io/debezium/outbox/quarkus/it/TestAsserts.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* Copyright Debezium Authors. | ||
* | ||
* Licensed under the Apache Software License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0 | ||
*/ | ||
package io.debezium.outbox.quarkus.it; | ||
|
||
import static org.junit.Assert.assertEquals; | ||
import static org.junit.Assert.assertNull; | ||
|
||
import org.hibernate.persister.entity.EntityPersister; | ||
|
||
/** | ||
* @author Chris Cranford | ||
*/ | ||
public class TestAsserts { | ||
|
||
private TestAsserts() { | ||
} | ||
|
||
public static void assertIsType(EntityPersister persister, Class<?> type, String attributeName) { | ||
assertEquals(type.getName(), persister.findAttributeMapping(attributeName).getJavaType().getTypeName()); | ||
} | ||
|
||
public static void assertHasNoMapping(EntityPersister persister, String attributeName) { | ||
assertNull(persister.findAttributeMapping(attributeName)); | ||
} | ||
} |