首页上一页 1 下一页尾页 2 条记录 1/1页
Hibernate是这样配置的吗
发表在Java图书答疑
2016-04-09
是否精华
是
否
版块置顶:
是
否
如题,文档里面这样说的,我的配置也有图,但是运行不了不知道哪里出了问题.
错误报告贴出来
四月 09, 2016 3:33:33 下午 org.hibernate.cfg.Environment <clinit>
信息: Hibernate 3.2.6
四月 09, 2016 3:33:33 下午 org.hibernate.cfg.Environment <clinit>
信息: hibernate.properties not found
四月 09, 2016 3:33:33 下午 org.hibernate.cfg.Environment buildBytecodeProvider
信息: Bytecode provider name : cglib
四月 09, 2016 3:33:33 下午 org.hibernate.cfg.Environment <clinit>
信息: using JDK 1.4 java.sql.Timestamp handling
四月 09, 2016 3:33:33 下午 org.hibernate.cfg.Configuration configure
信息: configuring from resource: /hibernate.cfg.xml
四月 09, 2016 3:33:33 下午 org.hibernate.cfg.Configuration getConfigurationInputStream
信息: Configuration resource: /hibernate.cfg.xml
四月 09, 2016 3:33:33 下午 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbDept.hbm.xml
四月 09, 2016 3:33:33 下午 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbDept -> tb_dept
四月 09, 2016 3:33:33 下午 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbPersonalInfo.hbm.xml
四月 09, 2016 3:33:33 下午 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbPersonalInfo -> tb_personal_info
四月 09, 2016 3:33:33 下午 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbNativePlace.hbm.xml
四月 09, 2016 3:33:33 下午 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbNativePlace -> tb_native_place
四月 09, 2016 3:33:33 下午 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbBringUpContent.hbm.xml
四月 09, 2016 3:33:33 下午 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbBringUpContent -> tb_bring_up_content
四月 09, 2016 3:33:33 下午 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbReckoningList.hbm.xml
四月 09, 2016 3:33:33 下午 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbReckoningList -> tb_reckoning_list
四月 09, 2016 3:33:33 下午 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbManager.hbm.xml
四月 09, 2016 3:33:33 下午 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbManager -> tb_manager
四月 09, 2016 3:33:33 下午 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbRewardsAndPunishment.hbm.xml
四月 09, 2016 3:33:33 下午 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbRewardsAndPunishment -> tb_rewards_and_punishment
四月 09, 2016 3:33:33 下午 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbAccountItem.hbm.xml
四月 09, 2016 3:33:33 下午 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbAccountItem -> tb_account_item
四月 09, 2016 3:33:33 下午 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbDutyInfo.hbm.xml
四月 09, 2016 3:33:33 下午 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbDutyInfo -> tb_duty_info
四月 09, 2016 3:33:33 下午 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbReckoning.hbm.xml
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbReckoning -> tb_reckoning
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbTimecard.hbm.xml
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbTimecard -> tb_timecard
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbNation.hbm.xml
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbNation -> tb_nation
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbRecord.hbm.xml
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbRecord -> tb_record
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbReckoningInfo.hbm.xml
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbReckoningInfo -> tb_reckoning_info
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbAccessionForm.hbm.xml
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbAccessionForm -> tb_accession_form
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbDuty.hbm.xml
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbDuty -> tb_duty
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbBringUpOntent.hbm.xml
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbBringUpOntent -> tb_bring_up_ontent
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.Configuration doConfigure
信息: Configured SessionFactory: null
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: com.mwq.hibernate.mapping.TbDept.tbDepts -> tb_dept
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: com.mwq.hibernate.mapping.TbDept.tbDutyInfos -> tb_duty_info
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: com.mwq.hibernate.mapping.TbBringUpContent.tbBringUpOntents -> tb_bring_up_ontent
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: com.mwq.hibernate.mapping.TbReckoning.tbReckoningInfos -> tb_reckoning_info
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: com.mwq.hibernate.mapping.TbReckoning.tbReckoningLists -> tb_reckoning_list
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: com.mwq.hibernate.mapping.TbRecord.tbBringUpOntents -> tb_bring_up_ontent
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: com.mwq.hibernate.mapping.TbRecord.tbTimecardsForRecordId -> tb_timecard
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: com.mwq.hibernate.mapping.TbRecord.tbRewardsAndPunishmentsForRecordId -> tb_rewards_and_punishment
四月 09, 2016 3:33:34 下午 org.hibernate.connection.DriverManagerConnectionProvider configure
信息: Using Hibernate built-in connection pool (not for production use!)
四月 09, 2016 3:33:34 下午 org.hibernate.connection.DriverManagerConnectionProvider configure
信息: Hibernate connection pool size: 20
四月 09, 2016 3:33:34 下午 org.hibernate.connection.DriverManagerConnectionProvider configure
信息: autocommit mode: false
四月 09, 2016 3:33:34 下午 org.hibernate.connection.DriverManagerConnectionProvider configure
信息: using driver: oracle.jdbc.driver.OracleDriver at URL: jdbc:oracle:thin:@127.0.0.1:1521:DBSQL
四月 09, 2016 3:33:34 下午 org.hibernate.connection.DriverManagerConnectionProvider configure
信息: connection properties: {user=PERSONNEL_MANAGE, password=****}
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.SettingsFactory buildSettings
警告: Could not obtain connection metadata
java.sql.SQLException: Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:412)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:531)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:221)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:503)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:84)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2073)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1298)
at com.mwq.hibernate.HibernateSessionFactory.<clinit>(HibernateSessionFactory.java:17)
at com.mwq.hibernate.BaseDao.queryList(BaseDao.java:29)
at com.mwq.hibernate.Dao.queryManagerOfNatural(Dao.java:141)
at com.mwq.frame.LandFrame.<init>(LandFrame.java:100)
at com.mwq.frame.LandFrame.main(LandFrame.java:44)
Caused by: oracle.net.ns.NetException: Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
at oracle.net.ns.NSProtocol.connect(NSProtocol.java:385)
at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1042)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:301)
... 15 more
四月 09, 2016 3:33:34 下午 org.hibernate.dialect.Dialect <init>
信息: Using dialect: org.hibernate.dialect.OracleDialect
四月 09, 2016 3:33:34 下午 org.hibernate.dialect.Oracle9Dialect <init>
警告: The Oracle9Dialect dialect has been deprecated; use either Oracle9iDialect or Oracle10gDialect instead
四月 09, 2016 3:33:34 下午 org.hibernate.dialect.OracleDialect <init>
警告: The OracleDialect dialect has been deprecated; use Oracle8iDialect instead
四月 09, 2016 3:33:34 下午 org.hibernate.transaction.TransactionFactoryFactory buildTransactionFactory
信息: Using default transaction strategy (direct JDBC transactions)
四月 09, 2016 3:33:34 下午 org.hibernate.transaction.TransactionManagerLookupFactory getTransactionManagerLookup
信息: No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: Automatic flush during beforeCompletion(): disabled
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: Automatic session close at end of transaction: disabled
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: Scrollable result sets: disabled
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: JDBC3 getGeneratedKeys(): disabled
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: Connection release mode: auto
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: Default batch fetch size: 1
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: Generate SQL with comments: enabled
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: Order SQL updates by primary key: disabled
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: Order SQL inserts for batching: disabled
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.SettingsFactory createQueryTranslatorFactory
信息: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
四月 09, 2016 3:33:34 下午 org.hibernate.hql.ast.ASTQueryTranslatorFactory <init>
信息: Using ASTQueryTranslatorFactory
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: Query language substitutions: {}
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: JPA-QL strict compliance: disabled
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: Second-level cache: enabled
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: Query cache: disabled
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.SettingsFactory createCacheProvider
信息: Cache provider: org.hibernate.cache.NoCacheProvider
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: Optimize cache for minimal puts: disabled
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: Structured second-level cache entries: disabled
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: Echoing all SQL to stdout
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: Statistics: disabled
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: Deleted entity synthetic identifier rollback: disabled
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: Default entity-mode: pojo
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: Named query checking : enabled
四月 09, 2016 3:33:34 下午 org.hibernate.impl.SessionFactoryImpl <init>
信息: building session factory
四月 09, 2016 3:33:34 下午 org.hibernate.impl.SessionFactoryObjectFactory addInstance
信息: Not binding factory to JNDI, no JNDI name configured
四月 09, 2016 3:33:34 下午 org.hibernate.util.JDBCExceptionReporter logExceptions
警告: SQL Error: 12505, SQLState: 66000
四月 09, 2016 3:33:34 下午 org.hibernate.util.JDBCExceptionReporter logExceptions
严重: Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
org.hibernate.exception.GenericJDBCException: Cannot open connection
at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29)
at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:426)
at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:144)
at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:139)
at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1547)
at org.hibernate.loader.Loader.doQuery(Loader.java:673)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
at org.hibernate.loader.Loader.doList(Loader.java:2213)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
at org.hibernate.loader.Loader.list(Loader.java:2099)
at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:378)
at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
at com.mwq.hibernate.BaseDao.queryList(BaseDao.java:31)
at com.mwq.hibernate.Dao.queryManagerOfNatural(Dao.java:141)
at com.mwq.frame.LandFrame.<init>(LandFrame.java:100)
at com.mwq.frame.LandFrame.main(LandFrame.java:44)
Caused by: java.sql.SQLException: Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:412)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:531)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:221)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:503)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110)
at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:423)
... 17 more
Caused by: oracle.net.ns.NetException: Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
at oracle.net.ns.NSProtocol.connect(NSProtocol.java:385)
at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1042)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:301)
... 25 more
错误报告贴出来
四月 09, 2016 3:33:33 下午 org.hibernate.cfg.Environment <clinit>
信息: Hibernate 3.2.6
四月 09, 2016 3:33:33 下午 org.hibernate.cfg.Environment <clinit>
信息: hibernate.properties not found
四月 09, 2016 3:33:33 下午 org.hibernate.cfg.Environment buildBytecodeProvider
信息: Bytecode provider name : cglib
四月 09, 2016 3:33:33 下午 org.hibernate.cfg.Environment <clinit>
信息: using JDK 1.4 java.sql.Timestamp handling
四月 09, 2016 3:33:33 下午 org.hibernate.cfg.Configuration configure
信息: configuring from resource: /hibernate.cfg.xml
四月 09, 2016 3:33:33 下午 org.hibernate.cfg.Configuration getConfigurationInputStream
信息: Configuration resource: /hibernate.cfg.xml
四月 09, 2016 3:33:33 下午 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbDept.hbm.xml
四月 09, 2016 3:33:33 下午 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbDept -> tb_dept
四月 09, 2016 3:33:33 下午 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbPersonalInfo.hbm.xml
四月 09, 2016 3:33:33 下午 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbPersonalInfo -> tb_personal_info
四月 09, 2016 3:33:33 下午 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbNativePlace.hbm.xml
四月 09, 2016 3:33:33 下午 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbNativePlace -> tb_native_place
四月 09, 2016 3:33:33 下午 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbBringUpContent.hbm.xml
四月 09, 2016 3:33:33 下午 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbBringUpContent -> tb_bring_up_content
四月 09, 2016 3:33:33 下午 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbReckoningList.hbm.xml
四月 09, 2016 3:33:33 下午 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbReckoningList -> tb_reckoning_list
四月 09, 2016 3:33:33 下午 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbManager.hbm.xml
四月 09, 2016 3:33:33 下午 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbManager -> tb_manager
四月 09, 2016 3:33:33 下午 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbRewardsAndPunishment.hbm.xml
四月 09, 2016 3:33:33 下午 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbRewardsAndPunishment -> tb_rewards_and_punishment
四月 09, 2016 3:33:33 下午 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbAccountItem.hbm.xml
四月 09, 2016 3:33:33 下午 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbAccountItem -> tb_account_item
四月 09, 2016 3:33:33 下午 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbDutyInfo.hbm.xml
四月 09, 2016 3:33:33 下午 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbDutyInfo -> tb_duty_info
四月 09, 2016 3:33:33 下午 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbReckoning.hbm.xml
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbReckoning -> tb_reckoning
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbTimecard.hbm.xml
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbTimecard -> tb_timecard
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbNation.hbm.xml
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbNation -> tb_nation
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbRecord.hbm.xml
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbRecord -> tb_record
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbReckoningInfo.hbm.xml
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbReckoningInfo -> tb_reckoning_info
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbAccessionForm.hbm.xml
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbAccessionForm -> tb_accession_form
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbDuty.hbm.xml
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbDuty -> tb_duty
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbBringUpOntent.hbm.xml
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbBringUpOntent -> tb_bring_up_ontent
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.Configuration doConfigure
信息: Configured SessionFactory: null
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: com.mwq.hibernate.mapping.TbDept.tbDepts -> tb_dept
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: com.mwq.hibernate.mapping.TbDept.tbDutyInfos -> tb_duty_info
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: com.mwq.hibernate.mapping.TbBringUpContent.tbBringUpOntents -> tb_bring_up_ontent
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: com.mwq.hibernate.mapping.TbReckoning.tbReckoningInfos -> tb_reckoning_info
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: com.mwq.hibernate.mapping.TbReckoning.tbReckoningLists -> tb_reckoning_list
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: com.mwq.hibernate.mapping.TbRecord.tbBringUpOntents -> tb_bring_up_ontent
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: com.mwq.hibernate.mapping.TbRecord.tbTimecardsForRecordId -> tb_timecard
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: com.mwq.hibernate.mapping.TbRecord.tbRewardsAndPunishmentsForRecordId -> tb_rewards_and_punishment
四月 09, 2016 3:33:34 下午 org.hibernate.connection.DriverManagerConnectionProvider configure
信息: Using Hibernate built-in connection pool (not for production use!)
四月 09, 2016 3:33:34 下午 org.hibernate.connection.DriverManagerConnectionProvider configure
信息: Hibernate connection pool size: 20
四月 09, 2016 3:33:34 下午 org.hibernate.connection.DriverManagerConnectionProvider configure
信息: autocommit mode: false
四月 09, 2016 3:33:34 下午 org.hibernate.connection.DriverManagerConnectionProvider configure
信息: using driver: oracle.jdbc.driver.OracleDriver at URL: jdbc:oracle:thin:@127.0.0.1:1521:DBSQL
四月 09, 2016 3:33:34 下午 org.hibernate.connection.DriverManagerConnectionProvider configure
信息: connection properties: {user=PERSONNEL_MANAGE, password=****}
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.SettingsFactory buildSettings
警告: Could not obtain connection metadata
java.sql.SQLException: Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:412)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:531)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:221)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:503)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:84)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2073)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1298)
at com.mwq.hibernate.HibernateSessionFactory.<clinit>(HibernateSessionFactory.java:17)
at com.mwq.hibernate.BaseDao.queryList(BaseDao.java:29)
at com.mwq.hibernate.Dao.queryManagerOfNatural(Dao.java:141)
at com.mwq.frame.LandFrame.<init>(LandFrame.java:100)
at com.mwq.frame.LandFrame.main(LandFrame.java:44)
Caused by: oracle.net.ns.NetException: Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
at oracle.net.ns.NSProtocol.connect(NSProtocol.java:385)
at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1042)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:301)
... 15 more
四月 09, 2016 3:33:34 下午 org.hibernate.dialect.Dialect <init>
信息: Using dialect: org.hibernate.dialect.OracleDialect
四月 09, 2016 3:33:34 下午 org.hibernate.dialect.Oracle9Dialect <init>
警告: The Oracle9Dialect dialect has been deprecated; use either Oracle9iDialect or Oracle10gDialect instead
四月 09, 2016 3:33:34 下午 org.hibernate.dialect.OracleDialect <init>
警告: The OracleDialect dialect has been deprecated; use Oracle8iDialect instead
四月 09, 2016 3:33:34 下午 org.hibernate.transaction.TransactionFactoryFactory buildTransactionFactory
信息: Using default transaction strategy (direct JDBC transactions)
四月 09, 2016 3:33:34 下午 org.hibernate.transaction.TransactionManagerLookupFactory getTransactionManagerLookup
信息: No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: Automatic flush during beforeCompletion(): disabled
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: Automatic session close at end of transaction: disabled
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: Scrollable result sets: disabled
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: JDBC3 getGeneratedKeys(): disabled
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: Connection release mode: auto
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: Default batch fetch size: 1
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: Generate SQL with comments: enabled
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: Order SQL updates by primary key: disabled
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: Order SQL inserts for batching: disabled
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.SettingsFactory createQueryTranslatorFactory
信息: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
四月 09, 2016 3:33:34 下午 org.hibernate.hql.ast.ASTQueryTranslatorFactory <init>
信息: Using ASTQueryTranslatorFactory
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: Query language substitutions: {}
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: JPA-QL strict compliance: disabled
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: Second-level cache: enabled
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: Query cache: disabled
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.SettingsFactory createCacheProvider
信息: Cache provider: org.hibernate.cache.NoCacheProvider
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: Optimize cache for minimal puts: disabled
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: Structured second-level cache entries: disabled
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: Echoing all SQL to stdout
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: Statistics: disabled
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: Deleted entity synthetic identifier rollback: disabled
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: Default entity-mode: pojo
四月 09, 2016 3:33:34 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: Named query checking : enabled
四月 09, 2016 3:33:34 下午 org.hibernate.impl.SessionFactoryImpl <init>
信息: building session factory
四月 09, 2016 3:33:34 下午 org.hibernate.impl.SessionFactoryObjectFactory addInstance
信息: Not binding factory to JNDI, no JNDI name configured
四月 09, 2016 3:33:34 下午 org.hibernate.util.JDBCExceptionReporter logExceptions
警告: SQL Error: 12505, SQLState: 66000
四月 09, 2016 3:33:34 下午 org.hibernate.util.JDBCExceptionReporter logExceptions
严重: Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
org.hibernate.exception.GenericJDBCException: Cannot open connection
at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29)
at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:426)
at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:144)
at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:139)
at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1547)
at org.hibernate.loader.Loader.doQuery(Loader.java:673)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
at org.hibernate.loader.Loader.doList(Loader.java:2213)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
at org.hibernate.loader.Loader.list(Loader.java:2099)
at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:378)
at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
at com.mwq.hibernate.BaseDao.queryList(BaseDao.java:31)
at com.mwq.hibernate.Dao.queryManagerOfNatural(Dao.java:141)
at com.mwq.frame.LandFrame.<init>(LandFrame.java:100)
at com.mwq.frame.LandFrame.main(LandFrame.java:44)
Caused by: java.sql.SQLException: Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:412)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:531)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:221)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:503)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110)
at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:423)
... 17 more
Caused by: oracle.net.ns.NetException: Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
at oracle.net.ns.NSProtocol.connect(NSProtocol.java:385)
at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1042)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:301)
... 25 more