Hi, guys !
I currently trying to move from Hibernate 3.0RC to 3.0.
Strange problem occur.
During hibernate startup, I see, that hibernate.properties is loaded and contains auto flush and session close. But SettingsFactory says that they are disabled. In 3.0RC everything worked flawlessly.
My hibernate.properties:
Code:
hibernate.transaction.auto_close_session=true
hibernate.transaction.flush_before_completion=true
log:
Code:
10:43:49,407 INFO [HibernateServiceMBean] starting service at JNDI name: java:/hibernate/NordlbCards/TBOHibernateFactory
10:43:49,407 INFO [HibernateServiceMBean] service properties: {hibernate.session_factory_name=java:/hibernate/NordlbCards/TBOHibernateFactory, hibernate.transaction.manager_lookup_class=org.hibernate.transaction.JBossTransactionManagerLookup, hibernate.transaction.factory_class=org.hibernate.transaction.JTATransactionFactory, hibernate.connection.datasource=java:/TboDS, jta.UserTransaction=UserTransaction}
10:43:49,469 INFO [Environment] Hibernate 3.0
10:43:49,469 INFO [Environment] loaded properties from resource hibernate.properties: {hibernate.cglib.use_reflection_optimizer=true, hibernate.transaction.auto_close_session=true, hibernate.transaction.flush_before_completion=true}
10:43:49,469 INFO [Environment] using CGLIB reflection optimizer
10:43:49,469 INFO [Environment] using JDK 1.4 java.sql.Timestamp handling
10:43:49,688 INFO [Configuration] Mapping resource: lv/nordlb/cards/transmaster/bo/hibernate/commonStuff.hbm.xml
10:43:50,063 INFO [Configuration] Mapping resource: lv/nordlb/cards/transmaster/bo/hibernate/IzdCardType.hbm.xml
10:43:50,141 INFO [HbmBinder] Mapping class: lv.nordlb.cards.transmaster.bo.hibernate.IzdCardType -> IZD_CARD_TYPE
10:43:50,235 INFO [Configuration] Mapping resource: lv/nordlb/cards/transmaster/bo/hibernate/IzdValidProductCcy.hbm.xml
10:43:50,266 INFO [HbmBinder] Mapping class: lv.nordlb.cards.transmaster.bo.hibernate.IzdValidProductCcy -> IZD_VALID_PRODUCT_CCY
10:43:50,298 INFO [Configuration] Mapping resource: lv/nordlb/cards/transmaster/bo/hibernate/IzdAccParam.hbm.xml
10:43:50,344 INFO [HbmBinder] Mapping class: lv.nordlb.cards.transmaster.bo.hibernate.IzdAccParam -> IZD_ACC_PARAM
10:43:50,344 INFO [Configuration] Mapping resource: lv/nordlb/cards/transmaster/bo/hibernate/NordlbFileId.hbm.xml
10:43:50,376 INFO [HbmBinder] Mapping class: lv.nordlb.cards.transmaster.bo.hibernate.NordlbFileId -> NORDLB_FILE_IDS
10:43:50,376 INFO [Configuration] Mapping resource: lv/nordlb/cards/transmaster/bo/hibernate/NordlbBranch.hbm.xml
10:43:50,407 INFO [HbmBinder] Mapping class: lv.nordlb.cards.transmaster.bo.hibernate.NordlbBranch -> NORDLB_BRANCHES
10:43:50,407 INFO [Configuration] Mapping resource: lv/nordlb/cards/transmaster/bo/hibernate/IzdBranch.hbm.xml
10:43:50,438 INFO [HbmBinder] Mapping class: lv.nordlb.cards.transmaster.bo.hibernate.IzdBranch -> IZD_BRANCHES
10:43:50,454 INFO [Configuration] Mapping resource: lv/nordlb/cards/transmaster/bo/hibernate/IzdClAcct.hbm.xml
10:43:50,485 INFO [HbmBinder] Mapping class: lv.nordlb.cards.transmaster.bo.hibernate.IzdClAcct -> IZD_CL_ACCT
10:43:50,485 INFO [Configuration] Mapping resource: lv/nordlb/cards/transmaster/bo/hibernate/IzdAgreement.hbm.xml
10:43:50,532 INFO [HbmBinder] Mapping class: lv.nordlb.cards.transmaster.bo.hibernate.IzdAgreement -> IZD_AGREEMENT
10:43:50,532 INFO [Configuration] Mapping resource: lv/nordlb/cards/transmaster/bo/hibernate/IzdCardGroupCcy.hbm.xml
10:43:50,563 INFO [HbmBinder] Mapping class: lv.nordlb.cards.transmaster.bo.hibernate.IzdCardGroupCcy -> IZD_CARD_GROUP_CCY
10:43:50,579 INFO [Configuration] Mapping resource: lv/nordlb/cards/transmaster/bo/hibernate/IzdCompany.hbm.xml
10:43:50,610 INFO [HbmBinder] Mapping class: lv.nordlb.cards.transmaster.bo.hibernate.IzdCompany -> IZD_COMPANIES
10:43:50,610 INFO [Configuration] Mapping resource: lv/nordlb/cards/transmaster/bo/hibernate/IzdAccount.hbm.xml
10:43:50,641 INFO [HbmBinder] Mapping class: lv.nordlb.cards.transmaster.bo.hibernate.IzdAccount -> IZD_ACCOUNTS
10:43:50,657 INFO [Configuration] Mapping resource: lv/nordlb/cards/transmaster/bo/hibernate/IzdClient.hbm.xml
10:43:50,688 INFO [HbmBinder] Mapping class: lv.nordlb.cards.transmaster.bo.hibernate.IzdClient -> IZD_CLIENTS
10:43:50,704 INFO [Configuration] Mapping resource: lv/nordlb/cards/transmaster/bo/hibernate/IzdCardGroup.hbm.xml
10:43:50,720 INFO [HbmBinder] Mapping class: lv.nordlb.cards.transmaster.bo.hibernate.IzdCardGroup -> IZD_CARD_GROUPS
10:43:50,735 INFO [Configuration] Mapping resource: lv/nordlb/cards/transmaster/bo/hibernate/IzdOfferedProduct.hbm.xml
10:43:50,766 INFO [HbmBinder] Mapping class: lv.nordlb.cards.transmaster.bo.hibernate.IzdOfferedProduct -> IZD_OFFERED_PRODUCTS
10:43:50,766 INFO [Configuration] Mapping resource: lv/nordlb/cards/transmaster/bo/hibernate/IzdCategory.hbm.xml
10:43:50,798 INFO [HbmBinder] Mapping class: lv.nordlb.cards.transmaster.bo.hibernate.IzdCategory -> IZD_CATEGORIES
10:43:50,798 INFO [Configuration] Mapping resource: lv/nordlb/cards/transmaster/bo/hibernate/IzdCard.hbm.xml
10:43:50,829 INFO [HbmBinder] Mapping class: lv.nordlb.cards.transmaster.bo.hibernate.IzdCard -> IZD_CARDS
10:43:50,845 INFO [Configuration] Mapping resource: lv/nordlb/cards/transmaster/bo/hibernate/IzdDbOwner.hbm.xml
10:43:50,860 INFO [HbmBinder] Mapping class: lv.nordlb.cards.transmaster.bo.hibernate.IzdDbOwner -> IZD_DB_OWNERS
10:43:50,876 INFO [Configuration] Mapping resource: lv/nordlb/cards/transmaster/bo/hibernate/IzdStoplist.hbm.xml
10:43:50,891 INFO [HbmBinder] Mapping class: lv.nordlb.cards.transmaster.bo.hibernate.IzdStoplist -> IZD_STOPLIST
10:43:50,891 INFO [Configuration] Mapping resource: lv/nordlb/cards/transmaster/bo/hibernate/IzdStopCause.hbm.xml
10:43:50,907 INFO [HbmBinder] Mapping class: lv.nordlb.cards.transmaster.bo.hibernate.IzdStopCause -> IZD_STOP_CAUSES
10:43:50,907 INFO [Configuration] processing extends queue
10:43:50,923 INFO [Configuration] processing collection mappings
10:43:50,923 INFO [HbmBinder] Mapping collection: lv.nordlb.cards.transmaster.bo.hibernate.IzdCardType.izdCards -> IZD_CARDS
10:43:50,923 INFO [HbmBinder] Mapping collection: lv.nordlb.cards.transmaster.bo.hibernate.IzdBranch.nordlbBranches -> NORDLB_BRANCHES
10:43:50,938 INFO [HbmBinder] Mapping collection: lv.nordlb.cards.transmaster.bo.hibernate.IzdBranch.izdAgreements -> IZD_AGREEMENT
10:43:50,954 INFO [HbmBinder] Mapping collection: lv.nordlb.cards.transmaster.bo.hibernate.IzdClAcct.izdClAccts -> IZD_CL_ACCT
10:43:50,954 INFO [HbmBinder] Mapping collection: lv.nordlb.cards.transmaster.bo.hibernate.IzdClAcct.izdCards -> IZD_CARDS
10:43:50,970 INFO [HbmBinder] Mapping collection: lv.nordlb.cards.transmaster.bo.hibernate.IzdAgreement.izdCards -> IZD_CARDS
10:43:50,985 INFO [HbmBinder] Mapping collection: lv.nordlb.cards.transmaster.bo.hibernate.IzdCardGroupCcy.izdClAccts -> IZD_CL_ACCT
10:43:50,985 INFO [HbmBinder] Mapping collection: lv.nordlb.cards.transmaster.bo.hibernate.IzdCardGroupCcy.izdAccParams -> IZD_ACC_PARAM
10:43:51,001 INFO [HbmBinder] Mapping collection: lv.nordlb.cards.transmaster.bo.hibernate.IzdCompany.izdClientsByEmpCodeAndBankC -> IZD_CLIENTS
10:43:51,016 INFO [HbmBinder] Mapping collection: lv.nordlb.cards.transmaster.bo.hibernate.IzdAccount.izdClAccts -> IZD_CL_ACCT
10:43:51,032 INFO [HbmBinder] Mapping collection: lv.nordlb.cards.transmaster.bo.hibernate.IzdClient.izdAgreements -> IZD_AGREEMENT
10:43:51,032 INFO [HbmBinder] Mapping collection: lv.nordlb.cards.transmaster.bo.hibernate.IzdCardGroup.izdCardGroupCcies -> IZD_CARD_GROUP_CCY
10:43:51,048 INFO [HbmBinder] Mapping collection: lv.nordlb.cards.transmaster.bo.hibernate.IzdCardGroup.nordlbFileIds -> NORDLB_FILE_IDS
10:43:51,063 INFO [HbmBinder] Mapping collection: lv.nordlb.cards.transmaster.bo.hibernate.IzdOfferedProduct.izdValidProductCcies -> IZD_VALID_PRODUCT_CCY
10:43:51,063 INFO [HbmBinder] Mapping collection: lv.nordlb.cards.transmaster.bo.hibernate.IzdOfferedProduct.izdAgreements -> IZD_AGREEMENT
10:43:51,079 INFO [HbmBinder] Mapping collection: lv.nordlb.cards.transmaster.bo.hibernate.IzdCategory.izdClients -> IZD_CLIENTS
10:43:51,095 INFO [HbmBinder] Mapping collection: lv.nordlb.cards.transmaster.bo.hibernate.IzdDbOwner.izdCardGroups -> IZD_CARD_GROUPS
10:43:51,095 INFO [HbmBinder] Mapping collection: lv.nordlb.cards.transmaster.bo.hibernate.IzdStopCause.izdStoplists -> IZD_STOPLIST
10:43:51,110 INFO [Configuration] processing association property references
10:43:51,110 INFO [Configuration] processing foreign key constraints
10:43:51,813 INFO [Dialect] Using dialect: org.hibernate.dialect.OracleDialect
10:43:51,845 INFO [SettingsFactory] Default batch fetch size: 1
10:43:51,845 INFO [SettingsFactory] Generate SQL with comments: disabled
10:43:51,845 INFO [SettingsFactory] Order SQL updates by primary key: disabled
10:43:51,845 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
10:43:51,860 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
10:43:51,860 INFO [SettingsFactory] Query language substitutions: {}
10:43:51,876 INFO [NamingHelper] JNDI InitialContext properties:{}
10:43:51,891 INFO [DatasourceConnectionProvider] Using datasource: java:/TboDS
10:43:52,610 INFO [SettingsFactory] JDBC batch size: 15
10:43:52,610 INFO [SettingsFactory] JDBC batch updates for versioned data: disabled
10:43:52,610 INFO [SettingsFactory] Scrollable result sets: enabled
10:43:52,610 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): disabled
10:43:52,626 INFO [TransactionFactoryFactory] Transaction strategy: org.hibernate.transaction.JTATransactionFactory
10:43:52,641 INFO [NamingHelper] JNDI InitialContext properties:{}
10:43:52,641 INFO [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
10:43:52,657 INFO [TransactionManagerLookupFactory] instantiated TransactionManagerLookup
10:43:52,657 INFO [SettingsFactory] Automatic flush during beforeCompletion(): disabled
10:43:52,657 INFO [SettingsFactory] Automatic session close at end of transaction: disabled
10:43:52,657 INFO [SettingsFactory] Cache provider: org.hibernate.cache.EhCacheProvider
10:43:52,688 INFO [SettingsFactory] Second-level cache: enabled
10:43:52,688 INFO [SettingsFactory] Optimize cache for minimal puts: disabled
10:43:52,688 INFO [SettingsFactory] Structured second-level cache entries: enabled
10:43:52,688 INFO [SettingsFactory] Query cache: disabled
10:43:52,688 INFO [SettingsFactory] Statistics: disabled
10:43:52,704 INFO [SettingsFactory] Deleted entity synthetic identifier rollback: disabled
10:43:52,704 INFO [SettingsFactory] Default entity-mode: pojo
10:43:52,782 INFO [SessionFactoryImpl] building session factory
10:43:52,813 WARN [Configurator] No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/D:/PrFiles/jboss-3.2.6.optimized/server/default/lib/ehcache-1.1.jar!/ehcache-failsafe.xml
10:43:54,985 INFO [SessionFactoryObjectFactory] Factory name: java:/hibernate/NordlbCards/TBOHibernateFactory
10:43:54,985 INFO [NamingHelper] JNDI InitialContext properties:{}
10:43:54,985 INFO [NamingHelper] Creating subcontext: hibernate
10:43:54,985 INFO [NamingHelper] Creating subcontext: NordlbCards
10:43:54,985 INFO [SessionFactoryObjectFactory] Bound factory to JNDI name: java:/hibernate/NordlbCards/TBOHibernateFactory
10:43:54,985 WARN [SessionFactoryObjectFactory] InitialContext did not implement EventContext
10:43:55,001 INFO [NamingHelper] JNDI InitialContext properties:{}
10:43:55,001 INFO [SessionFactoryImpl] Checking 0 named queries
Have I missed something ?
Code: