Skip to content

Commit

Permalink
HHH-11331 fix SQLLoaderTest on DB2
Browse files Browse the repository at this point in the history
(cherry picked from commit c393853)
  • Loading branch information
jmartisk authored and gbadner committed Dec 13, 2016
1 parent 9aaf0cd commit ac71650
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -71,7 +71,7 @@ public void testTS() throws Exception {
Simple sim = new Simple( Long.valueOf(1) );
sim.setDate( new Date() );
session.save( sim );
Query q = session.createSQLQuery( "select {sim.*} from Simple {sim} where {sim}.date_ = ?" ).addEntity( "sim", Simple.class );
Query q = session.createSQLQuery( "select {sim.*} from SimpleEntity {sim} where {sim}.date_ = ?" ).addEntity( "sim", Simple.class );
q.setTimestamp( 0, sim.getDate() );
assertTrue ( q.list().size()==1 );
session.delete(sim);
Expand Down Expand Up @@ -112,7 +112,7 @@ public void testFindBySQLStar() throws HibernateException, SQLException {
session.flush();

session.createSQLQuery( "select {category.*} from category {category}" ).addEntity( "category", Category.class ).list();
session.createSQLQuery( "select {simple.*} from Simple {simple}" ).addEntity( "simple", Simple.class ).list();
session.createSQLQuery( "select {simple.*} from SimpleEntity {simple}" ).addEntity( "simple", Simple.class ).list();
session.createSQLQuery( "select {a.*} from TA {a}" ).addEntity( "a", A.class ).list();

session.getTransaction().commit();
Expand Down
Expand Up @@ -10,7 +10,7 @@
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
<hibernate-mapping default-lazy="false">

<class name="org.hibernate.test.legacy.Simple">
<class name="org.hibernate.test.legacy.Simple" table="SimpleEntity">
<id name="id" type="long" column="id_">
<generator class="assigned"/>
</id>
Expand Down

0 comments on commit ac71650

Please sign in to comment.