No, of course I'm not saying that and yes I'm using Jboss datasource ;)
Here is what log says:
In the beginning of the log file it says, loaded properties with hibernate.statement_cache.size, etc.
...
2003-09-30 16:25:20,328 INFO [net.sf.hibernate.cfg.Environment] Hibernate 2.0.2
2003-09-30 16:25:20,343 INFO [net.sf.hibernate.cfg.Environment] loaded properties from resource hibernate.properties: {hibernate.connection.driver_class=oracle.jdbc.OracleDriver, hibernate.cglib.use_reflection_optimizer=true, hibernate.dialect=net.sf.hibernate.dialect.Oracle9Dialect, hibernate.jdbc.batch_size=100, hibernate.connection.username=user, hibernate.connection.url=jdbc:oracle:oci:@tnsname hibernate.show_sql=false, hibernate.connection.password=password, hibernate.statement_cache.size=100, hibernate.connection.pool_size=10}
2003-09-30 16:25:20,343 INFO [net.sf.hibernate.cfg.Environment] using CGLIB reflection optimizer
2003-09-30 16:25:20,343 INFO [net.sf.hibernate.cfg.Environment] JVM proxy support: true
...
And after this, following two query repeats about thousand times... Every time it's prepared. That's why I wrote the previous message.
2003-09-30 16:25:59,265 DEBUG [net.sf.hibernate.impl.BatcherImpl] about to open: 0 open PreparedStatements, 0 open ResultSets
2003-09-30 16:25:59,265 DEBUG [net.sf.hibernate.impl.SessionFactoryImpl] prepared statement get: <query 1>
2003-09-30 16:25:59,265 DEBUG [net.sf.hibernate.impl.SessionFactoryImpl] preparing statement
2003-09-30 16:25:59,312 DEBUG [net.sf.hibernate.type.LongType] binding '241' to parameter: 1
2003-09-30 16:25:59,359 DEBUG [net.sf.hibernate.loader.Loader] processing result set
2003-09-30 16:25:59,359 DEBUG [net.sf.hibernate.loader.Loader] result row: 241
...
...
2003-09-30 16:25:59,375 DEBUG [net.sf.hibernate.loader.Loader] done processing result set (1 rows)
2003-09-30 16:25:59,375 DEBUG [net.sf.hibernate.impl.BatcherImpl] done closing: 0 open PreparedStatements, 0 open ResultSets
2003-09-30 16:25:59,375 DEBUG [net.sf.hibernate.impl.SessionFactoryImpl] closing statement
2003-09-30 16:25:59,375 DEBUG [net.sf.hibernate.loader.Loader] total objects hydrated: 1
2003-09-30 16:25:59,375 DEBUG [net.sf.hibernate.impl.SessionImpl] resolving associations for [kkdb.hnate.terminals#241]
2003-09-30 16:25:59,375 DEBUG [net.sf.hibernate.impl.SessionImpl] loading [kkdb.hnate.merchants#42942]
2003-09-30 16:25:59,375 DEBUG [net.sf.hibernate.impl.SessionImpl] attempting to resolve [kkdb.hnate.merchants#42942]
2003-09-30 16:25:59,375 DEBUG [net.sf.hibernate.impl.SessionImpl] object not resolved in any cache [kkdb.hnate.merchants#42942]
2003-09-30 16:25:59,375 DEBUG [net.sf.hibernate.persister.EntityPersister] Materializing entity: kkdb.hnate.merchants#42942
2003-09-30 16:25:59,375 DEBUG [net.sf.hibernate.impl.BatcherImpl] about to open: 0 open PreparedStatements, 0 open ResultSets
2003-09-30 16:25:59,375 DEBUG [net.sf.hibernate.impl.SessionFactoryImpl] prepared statement get: <query 2>
2003-09-30 16:25:59,375 DEBUG [net.sf.hibernate.impl.SessionFactoryImpl] preparing statement
2003-09-30 16:25:59,375 DEBUG [net.sf.hibernate.type.LongType] binding '42942' to parameter: 1
2003-09-30 16:25:59,406 DEBUG [net.sf.hibernate.loader.Loader] processing result set
2003-09-30 16:25:59,406 DEBUG [net.sf.hibernate.loader.Loader] result row: 42942
Is there something I'm missing?
Regards...
Serkan.
|