From 34dd9d186bd7f3263d06282e7fe1e81dafbfa0e4 Mon Sep 17 00:00:00 2001 From: Gail Badner Date: Tue, 24 Nov 2015 13:52:48 -0800 Subject: [PATCH] HHH-10327 : Unit test failure on Oracle due to DATE mismatches --- .../src/test/java/org/hibernate/test/legacy/FooBarTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hibernate-core/src/test/java/org/hibernate/test/legacy/FooBarTest.java b/hibernate-core/src/test/java/org/hibernate/test/legacy/FooBarTest.java index 2f9ac6a319..08a9446d00 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/legacy/FooBarTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/legacy/FooBarTest.java @@ -485,7 +485,7 @@ public class FooBarTest extends LegacyTestCase { // && !db.equals("weblogic") { if ( !( getDialect() instanceof InterbaseDialect ) ) { list = s.createQuery( "from Foo foo where ? = some elements(foo.component.importantDates)" ) - .setParameter( 0, new Date(), StandardBasicTypes.DATE ) + .setParameter( 0, foo.getTimestamp(), StandardBasicTypes.DATE ) .list(); assertTrue( "component query", list.size()==2 ); }