- Hibernate 3.2.5
- hibernate.properties not found
- Bytecode provider name : cglib
- using JDK 1.4 java.sql.Timestamp handling
- configuring from resource: /hibernate.cfg.xml
- Configuration resource: /hibernate.cfg.xml
- Reading mappings from resource : cn/itcast/hibernate/domain/User.hbm.xml
- Mapping class: cn.itcast.hibernate.domain.Users -> Users
- Configured SessionFactory: null
- Using Hibernate built-in connection pool (not for production use!)
- Hibernate connection pool size: 20
- autocommit mode: false
- using driver: com.microsoft.sqlserver.jdbc.SQLServerDriver at URL: jdbc:sqlserver://localhost:1433;databaseName=aa;
- connection properties: {user=sa, password=****}
- RDBMS: Microsoft SQL Server, version: 9.00.4035
- JDBC driver: Microsoft SQL Server 2005 JDBC Driver, version: 1.1.1501.101
- Using dialect: org.hibernate.dialect.SQLServerDialect
- Using default transaction strategy (direct JDBC transactions)
- No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
- Automatic flush during beforeCompletion(): disabled
- Automatic session close at end of transaction: disabled
- Scrollable result sets: enabled
- JDBC3 getGeneratedKeys(): enabled
- Connection release mode: auto
- Default batch fetch size: 1
- Generate SQL with comments: disabled
- Order SQL updates by primary key: disabled
- Order SQL inserts for batching: disabled
- Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
- Using ASTQueryTranslatorFactory
- Query language substitutions: {}
- JPA-QL strict compliance: disabled
- Second-level cache: enabled
- Query cache: disabled
- Cache provider: org.hibernate.cache.NoCacheProvider
- Optimize cache for minimal puts: disabled
- Structured second-level cache entries: disabled
- Statistics: disabled
- Deleted entity synthetic identifier rollback: disabled
- Default entity-mode: pojo
- Named query checking : enabled
- building session factory
- Not binding factory to JNDI, no JNDI name configured
- Running hbm2ddl schema export
- exporting generated schema to database
- schema export complete

解决方案 »

  1.   

    这是hibernate参数设置结果报告,举个例子,比如:- Second-level cache: enabled  表示hibernate现在使用了二级缓存
    ……具体表示什么意思可以查看hibernate的帮助文档。
      

  2.   

    这就跟工程启动的时候打印的那些信息是相似的,要加载配置文件,读取hibernate的映射文件,驱动程序等等.
      

  3.   

    都是Hibernate 的配置信息 ,有些没配置的,他就显示默认的信息!