Hibernate version:
2.1.6
Mapping documents:
Code between sessionFactory.openSession() and session.close():
System.out.println("START HIBERNATE INSERT"+new Timestamp(System.currentTimeMillis()));
for (int i = from; i < to; i++)
{
tx = session.beginTransaction();
ofacTB = new OfacTB();
ofacTB.setId(-1);
ofacTB.setChgBy(987);
ofacTB.setVal(name+i);
ofacTB.setChgOn(new Timestamp(System.currentTimeMillis()));
session.save(ofacTB);
//java.util.List xt = session.find( "from Cat as cat where cat.mate.bithdate is null" );
java.util.List ofacList = session.find("from OFAC_TB in class com.gs.fw.gc.core.refs.OfacTB where val_c = ?", (name+i), Hibernate.STRING );
OfacTB ot = new OfacTB();
ot.setId(ofacTB.getId());
//session.load(ot, new Integer(ofacTB.getId()));
dst.insertDataSourceInstanceAndHistory(ofacTB, (1+1), (4+1));
tx.commit();
}
System.out.println("END HIBERNATE INSERT"+new Timestamp(System.currentTimeMillis()));
Full stack trace of any exception that occurs:
Name and version of the database you are using:
DB2 UDB 8.1
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt:
int...
int...
int...
int...
int...
int...
int...
int...
int...
int...
We keep seeing the int... message. Where is this being printed?? Do we need an upated version of hibernate, so the int... message does not print??
|