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 ); }