HHH-15711 Fix test failure with Oracle
This commit is contained in:
parent
6f0a631917
commit
bf128ddbfa
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue