|
13 | 13 | import jakarta.persistence.Id; |
14 | 14 | import jakarta.persistence.SecondaryTable; |
15 | 15 | import jakarta.persistence.Table; |
16 | | -import org.hibernate.cfg.JdbcSettings; |
17 | | -import org.hibernate.testing.orm.junit.EntityManagerFactoryScope; |
| 16 | +import org.hibernate.boot.MetadataSources; |
18 | 17 | import org.hibernate.testing.orm.junit.JiraKey; |
19 | | -import org.hibernate.testing.orm.junit.Jpa; |
20 | | -import org.hibernate.testing.orm.junit.Setting; |
| 18 | +import org.hibernate.testing.orm.junit.NotImplementedYet; |
| 19 | +import org.hibernate.testing.orm.junit.ServiceRegistry; |
| 20 | +import org.hibernate.testing.orm.junit.ServiceRegistryScope; |
21 | 21 | import org.junit.jupiter.api.Test; |
22 | 22 |
|
23 | 23 | /** |
|
26 | 26 | * |
27 | 27 | * @author Vincent Bouthinon |
28 | 28 | */ |
29 | | -@Jpa( |
30 | | - annotatedClasses = { |
31 | | - NestedEmbeddedObjectWithASecondaryTableTest.Author.class, |
32 | | - NestedEmbeddedObjectWithASecondaryTableTest.Book.class, |
33 | | - NestedEmbeddedObjectWithASecondaryTableTest.House.class |
34 | | - }, |
35 | | - integrationSettings = @Setting(name = JdbcSettings.SHOW_SQL, value = "true") |
36 | | -) |
| 29 | +@SuppressWarnings("JUnitMalformedDeclaration") |
| 30 | +@ServiceRegistry() |
37 | 31 | @JiraKey("HHH-19272") |
38 | 32 | class NestedEmbeddedObjectWithASecondaryTableTest { |
39 | 33 |
|
40 | 34 | @Test |
41 | | - void testExceptionEmbeddedHasPropertiesMappedToTwoDifferentTables(EntityManagerFactoryScope scope) { |
42 | | - |
43 | | - scope.inTransaction( |
44 | | - entityManager -> { |
45 | | - // Nothing |
46 | | - } |
47 | | - ); |
| 35 | + @NotImplementedYet |
| 36 | + void testNestedEmbeddedAndSecondaryTables(ServiceRegistryScope registryScope) { |
| 37 | + final MetadataSources metadataSources = new MetadataSources( registryScope.getRegistry() ) |
| 38 | + .addAnnotatedClasses( Book.class, Author.class, House.class ); |
| 39 | + metadataSources.buildMetadata(); |
48 | 40 | } |
49 | 41 |
|
50 | 42 | @Entity(name = "book") |
|
0 commit comments