HHH-10327 : Unit test failure on Oracle due to DATE mismatches

This commit is contained in:
Gail Badner 2015-11-24 13:52:48 -08:00
parent 8de9ca0549
commit 34dd9d186b
1 changed files with 1 additions and 1 deletions

View File

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