日期:2014-05-20  浏览次数:20847 次

我用Spring控制Hibernate,但无法自动生成数据库,这是日志,求解!

INFO - hibernate.properties not found
INFO - Bytecode provider name : cglib
INFO - using JDK 1.4 java.sql.Timestamp handling
INFO - Mapping class: com.xiong.myhrs.model.Application -> Application
INFO - Mapping class: com.xiong.myhrs.model.Attend -> Attend
INFO - Mapping class: com.xiong.myhrs.model.AttendType -> type
INFO - Mapping class: com.xiong.myhrs.model.CheckBack -> CheckBack
INFO - Mapping class: com.xiong.myhrs.model.Employee -> Employee
INFO - Mapping joined-subclass: com.xiong.myhrs.model.Manager -> Manager
INFO - Mapping class: com.xiong.myhrs.model.Payment -> Payment
INFO - Mapping collection: com.xiong.myhrs.model.Attend.applications -> Application
INFO - Mapping collection: com.xiong.myhrs.model.Employee.attends -> Attend
INFO - Mapping collection: com.xiong.myhrs.model.Employee.payments -> Payment
INFO - Mapping collection: com.xiong.myhrs.model.Manager.checkBacks -> CheckBack
INFO - Mapping collection: com.xiong.myhrs.model.Manager.employees -> Employee
INFO - Building new Hibernate SessionFactory
INFO - Initializing connection provider: org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider
INFO - Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSourceName -> 1hge4gb8fobfe6d15blfp6|f0b4a3, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> com.mysql.jdbc.Driver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 1hge4gb8fobfe6d15blfp6|f0b4a3, idleConnectionTestPeriod -> 0, initialPoolSize -> 3, jdbcUrl -> jdbc:mysql://localhost:3306/myhrs, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 0, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 15, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 3, numHelperThreads -> 3, numThreadsAwaitingCheckoutDefaultUser -> 0, preferredTestQuery -> null, properties -> {user=******, password=******}, propertyCycle -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false ]
INFO - RDBMS: MySQL, version: 5.1.53-community
INFO - JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.1.7 ( Revision: ${svn.Revision} )
INFO - Using dialect: org.hibernate.dialect.MySQLDialect
INFO - Transaction strategy: org.springframework.orm.hibernate3.SpringTransactionFactory
INFO - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
INFO - Automatic flush during beforeCompletion(): disabled
INFO - Automatic session close at end of transaction: disabled
INFO - JDBC batch size: 15
INFO - JDBC batch updates for versioned data: disabled
INFO - Scrollable result sets: enabled
INFO - JDBC3 getGeneratedKeys(): enabled
INFO - Connection release mode: auto
INFO - Maximum outer join fetch depth: 2
INFO - Default batch fetch size: 1
INFO - Generate SQL with comments: disabled
INFO - Order SQL updates by primary key: disabled
INFO - Order SQL inserts for batching: disabled
INFO - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
INFO - Using ASTQueryTranslatorFactory
INFO - Query language substitutions: {}
INFO - JPA-QL strict compliance: disabled
INFO - Second-level cache: enabled
INFO - Query cache: enabled
INFO - Cache provider: org.hibernate.cache.EhCacheProvider