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

(cherry picked from commit 34dd9d186b)
This commit is contained in:
Gail Badner 2015-11-24 13:52:48 -08:00
parent c3ffe16ff0
commit 8552b84ae5
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 );
}