Hibernate version: 3.0.5
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs: None
Name and version of the database you are using: MS SQLServer 2000
The generated SQL (show_sql=true): Hibernate is not showing it
Debug level Hibernate log excerpt:
2005-06-16 12:06:04,312 INFO hibernate.cfg.Environment Hibernate 3.0.5
2005-06-16 12:06:04,312 INFO hibernate.cfg.Environment hibernate.properties not found
2005-06-16 12:06:04,312 INFO hibernate.cfg.Environment using CGLIB reflection optimizer
2005-06-16 12:06:08,906 INFO hibernate.cfg.SettingsFactory RDBMS: Microsoft SQL Server, version: 08.00.0534
2005-06-16 12:06:08,906 INFO hibernate.cfg.SettingsFactory JDBC driver: jTDS Type 4 JDBC Driver for MS SQL Server and Sybase, version: 1.0.3
2005-06-16 12:06:08,906 INFO hibernate.dialect.Dialect Using dialect: org.hibernate.dialect.SQLServerDialect
2005-06-16 12:06:08,906 INFO hibernate.transaction.TransactionFactoryFactory Using default transaction strategy (direct JDBC transactions)
2005-06-16 12:06:08,906 INFO hibernate.transaction.TransactionManagerLookupFactory No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
2005-06-16 12:06:08,906 INFO hibernate.cfg.SettingsFactory Automatic flush during beforeCompletion(): disabled
2005-06-16 12:06:08,906 INFO hibernate.cfg.SettingsFactory Automatic session close at end of transaction: disabled
2005-06-16 12:06:08,906 INFO hibernate.cfg.SettingsFactory Scrollable result sets: enabled
2005-06-16 12:06:08,906 DEBUG hibernate.cfg.SettingsFactory Wrap result sets: disabled
2005-06-16 12:06:08,906 INFO hibernate.cfg.SettingsFactory JDBC3 getGeneratedKeys(): disabled
2005-06-16 12:06:08,906 INFO hibernate.cfg.SettingsFactory Connection release mode: null
2005-06-16 12:06:08,922 INFO hibernate.cfg.SettingsFactory Maximum outer join fetch depth: 3
2005-06-16 12:06:08,922 INFO hibernate.cfg.SettingsFactory Default batch fetch size: 1
2005-06-16 12:06:08,922 INFO hibernate.cfg.SettingsFactory Generate SQL with comments: disabled
2005-06-16 12:06:08,922 INFO hibernate.cfg.SettingsFactory Order SQL updates by primary key: disabled
2005-06-16 12:06:08,922 INFO hibernate.cfg.SettingsFactory Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
2005-06-16 12:06:08,922 INFO hql.ast.ASTQueryTranslatorFactory Using ASTQueryTranslatorFactory
2005-06-16 12:06:08,922 INFO hibernate.cfg.SettingsFactory Query language substitutions: {}
2005-06-16 12:06:08,922 INFO hibernate.cfg.SettingsFactory Second-level cache: enabled
2005-06-16 12:06:08,922 INFO hibernate.cfg.SettingsFactory Query cache: disabled
2005-06-16 12:06:08,922 INFO hibernate.cfg.SettingsFactory Cache provider: org.hibernate.cache.EhCacheProvider
2005-06-16 12:06:08,922 INFO hibernate.cfg.SettingsFactory Optimize cache for minimal puts: disabled
2005-06-16 12:06:08,922 INFO hibernate.cfg.SettingsFactory Structured second-level cache entries: disabled
2005-06-16 12:06:08,922 DEBUG hibernate.exception.SQLExceptionConverterFactory Using dialect defined converter
2005-06-16 12:06:08,922 INFO hibernate.cfg.SettingsFactory Echoing all SQL to stdout
2005-06-16 12:06:08,922 INFO hibernate.cfg.SettingsFactory Statistics: disabled
2005-06-16 12:06:08,969 INFO hibernate.cfg.SettingsFactory Deleted entity synthetic identifier rollback: disabled
2005-06-16 12:06:08,969 INFO hibernate.cfg.SettingsFactory Default entity-mode: pojo
2005-06-16 12:06:08,969 INFO hibernate.impl.SessionFactoryImpl building session factory
2005-06-16 12:06:08,969 DEBUG hibernate.impl.SessionFactoryImpl Session factory constructed with filter configurations : {}
2005-06-16 12:06:09,781 INFO [HibernateProviderDAO] Searching
2005-06-16 12:06:09,797 DEBUG hibernate.impl.SessionImpl opened session at timestamp: 4583199415488512
2005-06-16 12:06:09,797 DEBUG [HibernateProviderDAO] got session org.hibernate.impl.SessionImpl(PersistenceContext[entityKeys=[],collectionKeys=[]] ActionQueue[insertions=[] updates=[] deletions=[] collectionCreations=[] collectionRemovals=[] collectionUpdates=[]])
2005-06-16 12:06:09,797 DEBUG [HibernateProviderDAO] executing query
2005-06-16 12:06:09,797 DEBUG hibernate.jdbc.JDBCContext after autocommit
2005-06-16 12:06:09,797 DEBUG hibernate.impl.SessionImpl after transaction completion
2005-06-16 12:06:09,797 DEBUG [HibernateProviderDAO] after findProviders()
2005-06-16 12:06:09,797 DEBUG hibernate.impl.SessionImpl closing session
2005-06-16 12:06:09,797 INFO [HibernateProviderDAO] Query time = 0
2005-06-16 12:06:09,797 WARN [HibernateProviderDAO] Cannot find key
The code is running in a web application under WebSphere 5.1.1 on Windows Server 2003. As can be seen by the log output, hibernate.show_sql is true yet Hibernate is not outputting any generated SQL between the openSession() and closeSession(). So, we always get back an empty list from Criteria.list(). There are no exceptions or other errors being generated.
|