Skip to content

Commit 004da1c

Browse files
yrodieremarko-bekhta
authored andcommitted
HSEARCH-5260 Fix and re-enable DynamicMapBaseIT#toOne
See https://hibernate.atlassian.net/browse/HHH-16100?focusedCommentId=116948
1 parent c5696ef commit 004da1c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

integrationtest/mapper/orm/src/test/java/org/hibernate/search/integrationtest/mapper/orm/dynamicmap/DynamicMapBaseIT.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
import org.hibernate.search.util.impl.integrationtest.mapper.orm.OrmSetupHelper;
4242
import org.hibernate.search.util.impl.test.annotation.TestForIssue;
4343

44-
import org.junit.jupiter.api.Disabled;
4544
import org.junit.jupiter.api.Test;
4645
import org.junit.jupiter.api.extension.RegisterExtension;
4746
import org.junit.jupiter.params.ParameterizedTest;
@@ -656,7 +655,6 @@ void basic_list() {
656655
}
657656

658657
@Test
659-
@Disabled("toone associations are buggy in dynamic-map mode -- see https://hibernate.atlassian.net/browse/HHH-16100")
660658
void toOne() {
661659
String hbmPath = "/DynamicMapBaseIT/toone.hbm.xml";
662660
String bookTypeName = "Book";

integrationtest/mapper/orm/src/test/resources/DynamicMapBaseIT/toone.hbm.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
<id name="id" type="integer"/>
1717
<property name="author" type="string"/>
1818
<property name="content" type="string"/>
19-
<one-to-one name="book" entity-name="Book" />
19+
<!-- https://docs.jboss.org/hibernate/orm/4.3/manual/en-US/html_single/#assoc-bidirectional-121 -->
20+
<many-to-one name="book" entity-name="Book" unique="true" />
2021
</class>
2122
</hibernate-mapping>

0 commit comments

Comments
 (0)