diff --git a/hibernate-core/src/test/java/org/hibernate/test/type/LocalDateTest.java b/hibernate-core/src/test/java/org/hibernate/test/type/LocalDateTest.java index aa2b79a466..e2176c2d8f 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/type/LocalDateTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/type/LocalDateTest.java @@ -10,6 +10,8 @@ import java.sql.Date; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; +import java.sql.Timestamp; +import java.sql.Types; import java.time.LocalDate; import java.time.ZoneId; import java.util.List; @@ -18,6 +20,8 @@ import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; +import org.hibernate.type.descriptor.sql.TimestampTypeDescriptor; + import org.hibernate.testing.TestForIssue; import org.junit.runners.Parameterized; @@ -36,6 +40,7 @@ public class LocalDateTest extends AbstractJavaTimeTypeTest data() { return new ParametersBuilder() + .alsoTestRemappingsWithH2( DateAsTimestampRemappingH2Dialect.class ) // Not affected by HHH-13266 (JDK-8061577) .add( 2017, 11, 6, ZONE_UTC_MINUS_8 ) .add( 2017, 11, 6, ZONE_PARIS ) @@ -44,7 +49,7 @@ public class LocalDateTest extends AbstractJavaTimeTypeTest