HHH-15711 Fix test failure with Oracle

This commit is contained in:
Andrea Boriero 2022-11-22 17:55:17 +01:00
parent 6f0a631917
commit bf128ddbfa
1 changed files with 4 additions and 0 deletions

View File

@ -3,12 +3,14 @@ package org.hibernate.orm.test.query.hql;
import java.util.List; import java.util.List;
import java.util.Locale; import java.util.Locale;
import org.hibernate.testing.TestForIssue;
import org.hibernate.testing.orm.junit.DomainModel; import org.hibernate.testing.orm.junit.DomainModel;
import org.hibernate.testing.orm.junit.SessionFactory; import org.hibernate.testing.orm.junit.SessionFactory;
import org.hibernate.testing.orm.junit.SessionFactoryScope; import org.hibernate.testing.orm.junit.SessionFactoryScope;
import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import jakarta.persistence.Column;
import jakarta.persistence.Embeddable; import jakarta.persistence.Embeddable;
import jakarta.persistence.Entity; import jakarta.persistence.Entity;
import jakarta.persistence.EnumType; import jakarta.persistence.EnumType;
@ -21,6 +23,7 @@ import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
annotatedClasses = FunctionAndEnumsTest.TestEntity.class annotatedClasses = FunctionAndEnumsTest.TestEntity.class
) )
@SessionFactory @SessionFactory
@TestForIssue( jiraKey = "HHH-15711")
public class FunctionAndEnumsTest { public class FunctionAndEnumsTest {
@ -102,6 +105,7 @@ public class FunctionAndEnumsTest {
public static class EmbeddableFirstLevel { public static class EmbeddableFirstLevel {
@Enumerated(EnumType.STRING) @Enumerated(EnumType.STRING)
@Column(name = "LEVEL_COLUMN")
private Level level; private Level level;
private EmbeddableSecondLevel embeddableSecondLevel; private EmbeddableSecondLevel embeddableSecondLevel;