I'm following section 8.1 of the reference manual.
- Account is an interface
- AccounImpl implements Account
When the mapping file is loaded, AbstractEntityPersister fails in its constructor because it cannot find a property setter for 'id' (or the field if I use 'default-access=field') for 'Account'.
Question: Does this imply that:
a) 'default-access=field' cannot be used for an interface mapping?
b) A mapped interface must declare the setters.
I ask b) because I really don't want a setter for 'id' on the interface.
I guess what I'm wishing for for mappings on an interface to be 'abstract', and only applied once a subclass is encountered.
thanks!
----
Hibernate version:
2.1.7
Mapping documents:
Code:
<hibernate-mapping>
<class name="Account">
<id name="id" type="long">
<generator class="native"/>
</id>
<discriminator type="string"/>
<subclass name="AccountImpl"
discriminator-value="AccountImpl" />
</hibernate>
Code between sessionFactory.openSession() and session.close():
N/A. Error occures during load of mapping file.
Full stack trace of any exception that occurs:
[code]
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [opentrader-brokerdomain-hibernate-ftest.xml]: Initialization of bean failed; nested exception is net.sf.hibernate.PropertyNotFoundException: Could not find a setter for property id in class org.opentrader.broker.domain.account.AccountImpl
net.sf.hibernate.PropertyNotFoundException: Could not find a setter for property id in class org.opentrader.broker.domain.account.AccountImpl
at net.sf.hibernate.property.BasicPropertyAccessor.getSetter(BasicPropertyAccessor.java:131)
at net.sf.hibernate.mapping.Property.getSetter(Property.java:178)
at net.sf.hibernate.persister.AbstractEntityPersister.<init>(AbstractEntityPersister.java:591)
at net.sf.hibernate.persister.EntityPersister.<init>(EntityPersister.java:692)
at net.sf.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:42)
at net.sf.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:137)
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:796)
at org.springframework.orm.hibernate.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:475)
at org.springframework.orm.hibernate.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:413)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1037)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:305)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:223)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:236)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:159)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:255)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:317)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:80)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:65)
at org.opentrader.test.junit.FunctionalTestCase.loadApplicationContext(FunctionalTestCase.java:50)
at org.opentrader.test.junit.FunctionalTestCase.setUp(FunctionalTestCase.java:35)
at junit.framework.TestCase.runBare(TestCase.java:125)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at org.opentrader.test.junit.Log4jSupportTestCase.run(Log4jSupportTestCase.java:87)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:421)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:305)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:186)
[code]
Name and version of the database you are using:
The generated SQL (show_sql=true):
N/A. Error occurs during load of mapping file.
Debug level Hibernate log excerpt:
[code]
14:31:11,031 [testGetSave INFO-XmlBeanDefinitionReader] - Loading XML bean definitions from class path resource [opentrader-brokerdomain-hibernate-ftest.xml] (main org.springframework.beans.factory.xml.XmlBeanDefinitionReader)
14:31:11,031 [testGetSave DEBUG-XmlBeanDefinitionReader] - Using JAXP implementation [com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl@1bd4722] (main org.springframework.beans.factory.xml.XmlBeanDefinitionReader)
14:31:11,062 [testGetSave DEBUG-ResourceEntityResolver] - Trying to resolve XML entity with public ID [-//SPRING//DTD BEAN//EN] and system ID [http://www.springframework.org/dtd/spring-beans.dtd] (main org.springframework.context.support.ResourceEntityResolver)
14:31:11,062 [testGetSave DEBUG-ResourceEntityResolver] - Trying to locate [spring-beans.dtd] under [/org/springframework/beans/factory/xml/] (main org.springframework.context.support.ResourceEntityResolver)
14:31:11,062 [testGetSave DEBUG-ResourceEntityResolver] - Found beans DTD [http://www.springframework.org/dtd/spring-beans.dtd] in classpath (main org.springframework.context.support.ResourceEntityResolver)
14:31:11,093 [testGetSave DEBUG-DefaultXmlBeanDefinitionParser] - Loading bean definitions (main org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser)
14:31:11,109 [testGetSave DEBUG-DefaultXmlBeanDefinitionParser] - Default lazy init 'false' (main org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser)
14:31:11,109 [testGetSave DEBUG-DefaultXmlBeanDefinitionParser] - Default dependency check 'none' (main org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser)
14:31:11,109 [testGetSave DEBUG-DefaultXmlBeanDefinitionParser] - Default autowire 'no' (main org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser)
14:31:11,109 [testGetSave INFO-XmlBeanDefinitionReader] - Loading XML bean definitions from class path resource [opentrader-brokerdomain-hibernate.xml] (main org.springframework.beans.factory.xml.XmlBeanDefinitionReader)
14:31:11,109 [testGetSave DEBUG-XmlBeanDefinitionReader] - Using JAXP implementation [com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl@1f1fba0] (main org.springframework.beans.factory.xml.XmlBeanDefinitionReader)
14:31:11,109 [testGetSave DEBUG-ResourceEntityResolver] - Trying to resolve XML entity with public ID [-//SPRING//DTD BEAN//EN] and system ID [http://www.springframework.org/dtd/spring-beans.dtd] (main org.springframework.context.support.ResourceEntityResolver)
14:31:11,109 [testGetSave DEBUG-ResourceEntityResolver] - Trying to locate [spring-beans.dtd] under [/org/springframework/beans/factory/xml/] (main org.springframework.context.support.ResourceEntityResolver)
14:31:11,109 [testGetSave DEBUG-ResourceEntityResolver] - Found beans DTD [http://www.springframework.org/dtd/spring-beans.dtd] in classpath (main org.springframework.context.support.ResourceEntityResolver)
14:31:11,125 [testGetSave DEBUG-DefaultXmlBeanDefinitionParser] - Loading bean definitions (main org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser)
14:31:11,125 [testGetSave DEBUG-DefaultXmlBeanDefinitionParser] - Default lazy init 'false' (main org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser)
14:31:11,125 [testGetSave DEBUG-DefaultXmlBeanDefinitionParser] - Default dependency check 'none' (main org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser)
14:31:11,125 [testGetSave DEBUG-DefaultXmlBeanDefinitionParser] - Default autowire 'no' (main org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser)
14:31:11,125 [testGetSave DEBUG-DefaultXmlBeanDefinitionParser] - Found 0 <bean> elements defining beans (main org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser)
14:31:11,171 [testGetSave DEBUG-DefaultXmlBeanDefinitionParser] - Found 4 <bean> elements defining beans (main org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser)
14:31:11,171 [testGetSave INFO-ClassPathXmlApplicationContext] - Bean factory for application context [org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=17538308]: org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [propertyConfigurer,dataSource,sessionFactory,transactionManager]; root of BeanFactory hierarchy (main org.springframework.context.support.ClassPathXmlApplicationContext)
14:31:11,187 [testGetSave INFO-ClassPathXmlApplicationContext] - 4 beans defined in application context [org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=17538308] (main org.springframework.context.support.ClassPathXmlApplicationContext)
14:31:11,187 [testGetSave INFO-DefaultListableBeanFactory] - Creating shared instance of singleton bean 'propertyConfigurer' (main org.springframework.beans.factory.support.DefaultListableBeanFactory)
14:31:11,187 [testGetSave DEBUG-DefaultListableBeanFactory] - Creating instance of bean 'propertyConfigurer' with merged definition [Root bean with class [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer] defined in class path resource [opentrader-brokerdomain-hibernate-ftest.xml]] (main org.springframework.beans.factory.support.DefaultListableBeanFactory)
14:31:11,234 [testGetSave DEBUG-CachedIntrospectionResults] - Getting BeanInfo for class [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer] (main org.springframework.beans.CachedIntrospectionResults)
14:31:11,234 [testGetSave DEBUG-CachedIntrospectionResults] - Caching PropertyDescriptors for class [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer] (main org.springframework.beans.CachedIntrospectionResults)
14:31:11,234 [testGetSave DEBUG-CachedIntrospectionResults] - Found property 'beanFactory' of type [org.springframework.beans.factory.BeanFactory] (main org.springframework.beans.CachedIntrospectionResults)
14:31:11,234 [testGetSave DEBUG-CachedIntrospectionResults] - Found property 'beanName' of type [java.lang.String] (main org.springframework.beans.CachedIntrospectionResults)
14:31:11,234 [testGetSave DEBUG-CachedIntrospectionResults] - Found property 'class' of type [java.lang.Class] (main org.springframework.beans.CachedIntrospectionResults)
14:31:11,234 [testGetSave DEBUG-CachedIntrospectionResults] - Found property 'fileEncoding' of type [java.lang.String] (main org.springframework.beans.CachedIntrospectionResults)
14:31:11,234 [testGetSave DEBUG-CachedIntrospectionResults] - Found property 'ignoreResourceNotFound' of type [boolean] (main org.springframework.beans.CachedIntrospectionResults)
14:31:11,234 [testGetSave DEBUG-CachedIntrospectionResults] - Found property 'ignoreUnresolvablePlaceholders' of type [boolean] (main org.springframework.beans.CachedIntrospectionResults)
14:31:11,234 [testGetSave DEBUG-CachedIntrospectionResults] - Found property 'location' of type [org.springframework.core.io.Resource] (main org.springframework.beans.CachedIntrospectionResults)
14:31:11,234 [testGetSave DEBUG-CachedIntrospectionResults] - Found property 'locations' of type [[Lorg.springframework.core.io.Resource;] (main org.springframework.beans.CachedIntrospectionResults)
14:31:11,234 [testGetSave DEBUG-CachedIntrospectionResults] - Found property 'order' of type [int] (main org.springframework.beans.CachedIntrospectionResults)
14:31:11,234 [testGetSave DEBUG-CachedIntrospectionResults] - Found property 'placeholderPrefix' of type [java.lang.String] (main org.springframework.beans.CachedIntrospectionResults)
14:31:11,234 [testGetSave DEBUG-CachedIntrospectionResults] - Found property 'placeholderSuffix' of type [java.lang.String] (main org.springframework.beans.CachedIntrospectionResults)
14:31:11,234 [testGetSave DEBUG-CachedIntrospectionResults] - Found property 'properties' of type [java.util.Properties] (main org.springframework.beans.CachedIntrospectionResults)
14:31:11,234 [testGetSave DEBUG-CachedIntrospectionResults] - Found property 'propertiesPersister' of type [org.springframework.util.PropertiesPersister] (main org.springframework.beans.CachedIntrospectionResults)
14:31:11,234 [testGetSave DEBUG-CachedIntrospectionResults] - Found property 'systemPropertiesMode' of type [int] (main org.springframework.beans.CachedIntrospectionResults)
14:31:11,234 [testGetSave DEBUG-CachedIntrospectionResults] - Found property 'systemPropertiesModeName' of type [java.lang.String] (main org.springframework.beans.CachedIntrospectionResults)
14:31:11,234 [testGetSave DEBUG-CachedIntrospectionResults] - Class [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer] is cache-safe (main org.springframework.beans.CachedIntrospectionResults)
14:31:11,234 [testGetSave DEBUG-BeanWrapperImpl] - Converting String to [interface org.springframework.core.io.Resource] using property editor [org.springframework.core.io.ResourceEditor@16cd7d5] (main org.springframework.beans.BeanWrapperImpl)
14:31:11,234 [testGetSave DEBUG-BeanWrapperImpl] - About to invoke write method [public void org.springframework.beans.factory.config.PropertyResourceConfigurer.setLocations(org.springframework.core.io.Resource[])] on object of class [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer] (main org.springframework.beans.BeanWrapperImpl)
14:31:11,234 [testGetSave DEBUG-BeanWrapperImpl] - Invoked write method [public void org.springframework.beans.factory.config.PropertyResourceConfigurer.setLocations(org.springframework.core.io.Resource[])] with value of type [[Lorg.springframework.core.io.Resource;] (main org.springframework.beans.BeanWrapperImpl)
14:31:11,234 [testGetSave DEBUG-DefaultListableBeanFactory] - Invoking setBeanName on BeanNameAware bean 'propertyConfigurer' (main org.springframework.beans.factory.support.DefaultListableBeanFactory)
14:31:11,234 [testGetSave DEBUG-DefaultListableBeanFactory] - Invoking setBeanFactory on BeanFactoryAware bean 'propertyConfigurer' (main org.springframework.beans.factory.support.DefaultListableBeanFactory)
14:31:11,234 [testGetSave DEBUG-DefaultListableBeanFactory] - Invoking BeanPostProcessors before initialization of bean 'propertyConfigurer' (main org.springframework.beans.factory.support.DefaultListableBeanFactory)
14:31:11,234 [testGetSave DEBUG-DefaultListableBeanFactory] - Invoking BeanPostProcessors after initialization of bean 'propertyConfigurer' (main org.springframework.beans.factory.support.DefaultListableBeanFactory)
14:31:11,234 [testGetSave INFO-PropertyPlaceholderConfigurer] - Loading properties from class path resource [ftest.properties] (main org.springframework.beans.factory.config.PropertyPlaceholderConfigurer)
14:31:11,250 [testGetSave DEBUG-PropertyPlaceholderConfigurer] - Resolving placeholder 'hibernate.connection.driver_class' to [com.mysql.jdbc.Driver] (main org.springframework.beans.factory.config.PropertyPlaceholderConfigurer)
14:31:11,250 [testGetSave DEBUG-PropertyPlaceholderConfigurer] - Resolving placeholder 'hibernate.connection.url' to [jdbc:mysql:///opentrader-test] (main org.springframework.beans.factory.config.PropertyPlaceholderConfigurer)
14:31:11,250 [testGetSave DEBUG-PropertyPlaceholderConfigurer] - Resolving placeholder 'hibernate.connection.username' to [opentrader] (main org.springframework.beans.factory.config.PropertyPlaceholderConfigurer)
14:31:11,250 [testGetSave DEBUG-PropertyPlaceholderConfigurer] - Resolving placeholder 'hibernate.connection.password' to [opentrader] (main org.springframework.beans.factory.config.PropertyPlaceholderConfigurer)
14:31:11,250 [testGetSave INFO-ClassPathXmlApplicationContext] - Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.StaticMessageSource: {}] (main org.springframework.context.support.ClassPathXmlApplicationContext)
14:31:11,250 [testGetSave INFO-ClassPathXmlApplicationContext] - Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@1a626f] (main org.springframework.context.support.ClassPathXmlApplicationContext)
14:31:11,250 [testGetSave INFO-ClassPathXmlApplicationContext] - Refreshing listeners (main org.springframework.context.support.ClassPathXmlApplicationContext)
14:31:11,250 [testGetSave DEBUG-ClassPathXmlApplicationContext] - Found 0 listeners in bean factory (main org.springframework.context.support.ClassPathXmlApplicationContext)
14:31:11,250 [testGetSave INFO-DefaultListableBeanFactory] - Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [propertyConfigurer,dataSource,sessionFactory,transactionManager]; root of BeanFactory hierarchy] (main org.springframework.beans.factory.support.DefaultListableBeanFactory)
14:31:11,250 [testGetSave DEBUG-DefaultListableBeanFactory] - Returning cached instance of singleton bean 'propertyConfigurer' (main org.springframework.beans.factory.support.DefaultListableBeanFactory)
14:31:11,250 [testGetSave INFO-DefaultListableBeanFactory] - Creating shared instance of singleton bean 'dataSource' (main org.springframework.beans.factory.support.DefaultListableBeanFactory)
14:31:11,250 [testGetSave DEBUG-DefaultListableBeanFactory] - Creating instance of bean 'dataSource' with merged definition [Root bean with class [org.springframework.jdbc.datasource.DriverManagerDataSource] defined in class path resource [opentrader-brokerdomain-hibernate-ftest.xml]] (main org.springframework.beans.factory.support.DefaultListableBeanFactory)
14:31:11,250 [testGetSave DEBUG-CachedIntrospectionResults] - Getting BeanInfo for class [org.springframework.jdbc.datasource.DriverManagerDataSource] (main org.springframework.beans.CachedIntrospectionResults)
14:31:11,250 [testGetSave DEBUG-CachedIntrospectionResults] - Caching PropertyDescriptors for class [org.springframework.jdbc.datasource.DriverManagerDataSource] (main org.springframework.beans.CachedIntrospectionResults)
14:31:11,250 [testGetSave DEBUG-CachedIntrospectionResults] - Found property 'class' of type [java.lang.Class] (main org.springframework.beans.CachedIntrospectionResults)
14:31:11,250 [testGetSave DEBUG-CachedIntrospectionResults] - Found property 'connection' of type [java.sql.Connection] (main org.springframework.beans.CachedIntrospectionResults)
14:31:11,250 [testGetSave DEBUG-CachedIntrospectionResults] - Found property 'driverClassName' of type [java.lang.String] (main org.springframework.beans.CachedIntrospectionResults)
14:31:11,250 [testGetSave DEBUG-CachedIntrospectionResults] - Found property 'logWriter' of type [java.io.PrintWriter] (main org.springframework.beans.CachedIntrospectionResults)
14:31:11,250 [testGetSave DEBUG-CachedIntrospectionResults] - Found property 'loginTimeout' of type [int] (main org.springframework.beans.CachedIntrospectionResults)
14:31:11,250 [testGetSave DEBUG-CachedIntrospectionResults] - Found property 'password' of type [java.lang.String] (main org.springframework.beans.CachedIntrospectionResults)
14:31:11,250 [testGetSave DEBUG-CachedIntrospectionResults] - Found property 'url' of type [java.lang.String] (main org.springframework.beans.CachedIntrospectionResults)
14:31:11,250 [testGetSave DEBUG-CachedIntrospectionResults] - Found property 'username' of type [java.lang.String] (main org.springframework.beans.CachedIntrospectionResults)
14:31:11,250 [testGetSave DEBUG-CachedIntrospectionResults] - Class [org.springframework.jdbc.datasource.DriverManagerDataSource] is cache-safe (main org.springframework.beans.CachedIntrospectionResults)
14:31:11,250 [testGetSave DEBUG-BeanWrapperImpl] - About to invoke write method [public void org.springframework.jdbc.datasource.DriverManagerDataSource.setDriverClassName(java.lang.String) throws org.springframework.jdbc.CannotGetJdbcConnectionException] on object of class [org.springframework.jdbc.datasource.DriverManagerDataSource] (main org.springframework.beans.BeanWrapperImpl)
14:31:11,265 [testGetSave INFO-DriverManagerDataSource] - Loaded JDBC driver: com.mysql.jdbc.Driver (main org.springframework.jdbc.datasource.DriverManagerDataSource)
14:31:11,265 [testGetSave DEBUG-BeanWrapperImpl] - Invoked write method [public void org.springframework.jdbc.datasource.DriverManagerDataSource.setDriverClassName(java.lang.String) throws org.springframework.jdbc.CannotGetJdbcConnectionException] with value [com.mysql.jdbc.Driver] (main org.springframework.beans.BeanWrapperImpl)
14:31:11,265 [testGetSave DEBUG-BeanWrapperImpl] - About to invoke write method [public void org.springframework.jdbc.datasource.DriverManagerDataSource.setUrl(java.lang.String)] on object of class [org.springframework.jdbc.datasource.DriverManagerDataSource] (main org.springframework.beans.BeanWrapperImpl)
14:31:11,265 [testGetSave DEBUG-BeanWrapperImpl] - Invoked write method [public void org.springframework.jdbc.datasource.DriverManagerDataSource.setUrl(java.lang.String)] with value [jdbc:mysql:///opentrader-test] (main org.springframework.beans.BeanWrapperImpl)
14:31:11,265 [testGetSave DEBUG-BeanWrapperImpl] - About to invoke write method [public void org.springframework.jdbc.datasource.DriverManagerDataSource.setUsername(java.lang.String)] on object of class [org.springframework.jdbc.datasource.DriverManagerDataSource] (main org.springframework.beans.BeanWrapperImpl)
14:31:11,265 [testGetSave DEBUG-BeanWrapperImpl] - Invoked write method [public void org.springframework.jdbc.datasource.DriverManagerDataSource.setUsername(java.lang.String)] with value [opentrader] (main org.springframework.beans.BeanWrapperImpl)
14:31:11,265 [testGetSave DEBUG-BeanWrapperImpl] - About to invoke write method [public void org.springframework.jdbc.datasource.DriverManagerDataSource.setPassword(java.lang.String)] on object of class [org.springframework.jdbc.datasource.DriverManagerDataSource] (main org.springframework.beans.BeanWrapperImpl)
14:31:11,265 [testGetSave DEBUG-BeanWrapperImpl] - Invoked write method [public void org.springframework.jdbc.datasource.DriverManagerDataSource.setPassword(java.lang.String)] with value [opentrader] (main org.springframework.beans.BeanWrapperImpl)
14:31:11,265 [testGetSave DEBUG-DefaultListableBeanFactory] - Invoking BeanPostProcessors before initialization of bean 'dataSource' (main org.springframework.beans.factory.support.DefaultListableBeanFactory)
14:31:11,265 [testGetSave DEBUG-DefaultListableBeanFactory] - Invoking BeanPostProcessors after initialization of bean 'dataSource' (main org.springframework.beans.factory.support.DefaultListableBeanFactory)
14:31:11,265 [testGetSave INFO-DefaultListableBeanFactory] - Creating shared instance of singleton bean 'sessionFactory' (main org.springframework.beans.factory.support.DefaultListableBeanFactory)
14:31:11,265 [testGetSave DEBUG-DefaultListableBeanFactory] - Creating instance of bean 'sessionFactory' with merged definition [Root bean with class [org.springframework.orm.hibernate.LocalSessionFactoryBean] defined in class path resource [opentrader-brokerdomain-hibernate-ftest.xml]] (main org.springframework.beans.factory.support.DefaultListableBeanFactory)
14:31:11,265 [testGetSave DEBUG-CachedIntrospectionResults] - Getting BeanInfo for class [org.springframework.orm.hibernate.LocalSessionFactoryBean] (main org.springframework.beans.CachedIntrospectionResults)
14:31:11,281 [testGetSave DEBUG-CachedIntrospectionResults] - Caching PropertyDescriptors for class [org.springframework.orm.hibernate.LocalSessionFactoryBean] (main org.springframework.beans.CachedIntrospectionResults)
14:31:11,281 [testGetSave DEBUG-CachedIntrospectionResults] - Found property 'class' of type [java.lang.Class] (main org.springframework.beans.CachedIntrospectionResults)
14:31:11,281 [testGetSave DEBUG-CachedIntrospectionResults] - Found property 'configLocation' of type [org.springframework.core.io.Resource] (main org.springframework.beans.CachedIntrospectionResults)
14:31:11,281 [testGetSave DEBUG-CachedIntrospectionResults] - Found property 'configuration' of type [net.sf.hibernate.cfg.Configuration] (main org.springframework.beans.CachedIntrospectionResults)
14:31:11,281 [testGetSave DEBUG-CachedIntrospectionResults] - Found property 'dataSource' of type [javax.sql.DataSource] (main org.springframework.beans.CachedIntrospectionResults)
14:31:11,281 [testGetSave DEBUG-CachedIntrospectionResults] - Found property 'entityInterceptor' of type [net.sf.hibernate.Interceptor] (main org.springframework.beans.CachedIntrospectionResults)
14:31:11,281 [testGetSave DEBUG-CachedIntrospectionResults] - Found property 'hibernateProperties' of type [java.util.Properties] (main org.springframework.beans.CachedIntrospectionResults)
14:31:11,281 [testGetSave DEBUG-CachedIntrospectionResults] - Found property 'jtaTransactionManager' of type [javax.transaction.TransactionManager] (main org.springframework.beans.CachedIntrospectionResults)
14:31:11,281 [testGetSave DEBUG-CachedIntrospectionResults] - Found property 'lobHandler' of type [org.springframework.jdbc.support.lob.LobHandler] (main org.springframework.beans.CachedIntrospectionResults)
14:31:11,281 [testGetSave DEBUG-CachedIntrospectionResults] - Found property 'mappingDirectoryLocations' of type [[Lorg.springframework.core.io.Resource;] (main org.springframework.beans.CachedIntrospectionResults)
14:31:11,281 [testGetSave DEBUG-CachedIntrospectionResults] - Found property 'mappingJarLocations' of type [[Lorg.springframework.core.io.Resource;] (main org.springframework.beans.CachedIntrospectionResults)
14:31:11,281 [testGetSave DEBUG-CachedIntrospectionResults] - Found property 'mappingLocations' of type [[Lorg.springframework.core.io.Resource;] (main org.springframework.beans.CachedIntrospectionResults)
14:31:11,281 [testGetSave DEBUG-CachedIntrospectionResults] - Found property 'mappingResources' of type [[Ljava.lang.String;] (main org.springframework.beans.CachedIntrospectionResults)
14:31:11,281 [testGetSave DEBUG-CachedIntrospectionResults] - Found property 'namingStrategy' of type [net.sf.hibernate.cfg.NamingStrategy] (main org.springframework.beans.CachedIntrospectionResults)
14:31:11,281 [testGetSave DEBUG-CachedIntrospectionResults] - Found property 'object' of type [java.lang.Object] (main org.springframework.beans.CachedIntrospectionResults)
14:31:11,281 [testGetSave DEBUG-CachedIntrospectionResults] - Found property 'objectType' of type [java.lang.Class] (main org.springframework.beans.CachedIntrospectionResults)
14:31:11,281 [testGetSave DEBUG-CachedIntrospectionResults] - Found property 'schemaUpdate' of type [boolean] (main org.springframework.beans.CachedIntrospectionResults)
14:31:11,281 [testGetSave DEBUG-CachedIntrospectionResults] - Found property 'singleton' of type [boolean] (main org.springframework.beans.CachedIntrospectionResults)
14:31:11,281 [testGetSave DEBUG-CachedIntrospectionResults] - Class [org.springframework.orm.hibernate.LocalSessionFactoryBean] is cache-safe (main org.springframework.beans.CachedIntrospectionResults)
14:31:11,281 [testGetSave DEBUG-BeanWrapperImpl] - Converting String to [interface org.springframework.core.io.Resource] using property editor [org.springframework.core.io.ResourceEditor@16cd7d5] (main org.springframework.beans.BeanWrapperImpl)
14:31:11,281 [testGetSave DEBUG-BeanWrapperImpl] - About to invoke write method [public void org.springframework.orm.hibernate.LocalSessionFactoryBean.setMappingLocations(org.springframework.core.io.Resource[])] on object of class [org.springframework.orm.hibernate.LocalSessionFactoryBean] (main org.springframework.beans.BeanWrapperImpl)
14:31:11,281 [testGetSave DEBUG-BeanWrapperImpl] - Invoked write method [public void org.springframework.orm.hibernate.LocalSessionFactoryBean.setMappingLocations(org.springframework.core.io.Resource[])] with value of type [[Lorg.springframework.core.io.Resource;] (main org.springframework.beans.BeanWrapperImpl)
14:31:11,281 [testGetSave DEBUG-BeanWrapperImpl] - About to invoke write method [public void org.springframework.orm.hibernate.LocalSessionFactoryBean.setHibernateProperties(java.util.Properties)] on object of class [org.springframework.orm.hibernate.LocalSessionFactoryBean] (main org.springframework.beans.BeanWrapperImpl)
14:31:11,281 [testGetSave DEBUG-BeanWrapperImpl] - Invoked write method [public void org.springframework.orm.hibernate.LocalSessionFactoryBean.setHibernateProperties(java.util.Properties)] with value of type [java.util.Properties] (main org.springframework.beans.BeanWrapperImpl)
14:31:11,281 [testGetSave DEBUG-DefaultListableBeanFactory] - Invoking BeanPostProcessors before initialization of bean 'sessionFactory' (main org.springframework.beans.factory.support.DefaultListableBeanFactory)
14:31:11,281 [testGetSave DEBUG-DefaultListableBeanFactory] - Invoking afterPropertiesSet() on bean with beanName 'sessionFactory' (main org.springframework.beans.factory.support.DefaultListableBeanFactory)
14:31:11,296 [testGetSave INFO-Environment] - Hibernate 2.1.7 (main net.sf.hibernate.cfg.Environment)
14:31:11,296 [testGetSave INFO-Environment] - loaded properties from resource hibernate.properties: {hibernate.connection.username=opentrader, hibernate.connection.password=opentrader, hibernate.cglib.use_reflection_optimizer=true, hibernate.dialect=net.sf.hibernate.dialect.MySQLDialect, hibernate.connection.url=jdbc:mysql:///opentrader-test, hibernate.connection.driver_class=com.mysql.jdbc.Driver, hibernate.query.substitutions=true 1, false 0, yes 'Y', no 'N'} (main net.sf.hibernate.cfg.Environment)
14:31:11,296 [testGetSave INFO-Environment] - using CGLIB reflection optimizer (main net.sf.hibernate.cfg.Environment)
14:31:11,296 [testGetSave INFO-Environment] - using JDK 1.4 java.sql.Timestamp handling (main net.sf.hibernate.cfg.Environment)
14:31:11,343 [testGetSave DEBUG-DTDEntityResolver] - trying to locate
http://hibernate.sourceforge.net/hibern ... ng-2.0.dtd in classpath under net/sf/hibernate/ (main net.sf.hibernate.util.DTDEntityResolver)
14:31:11,343 [testGetSave DEBUG-DTDEntityResolver] - found
http://hibernate.sourceforge.net/hibern ... ng-2.0.dtd in classpath (main net.sf.hibernate.util.DTDEntityResolver)
14:31:11,453 [testGetSave INFO-Binder] - Mapping class: org.opentrader.broker.domain.account.Account -> Account (main net.sf.hibernate.cfg.Binder)
14:31:11,500 [testGetSave DEBUG-Binder] - Mapped property: id -> id, type: long (main net.sf.hibernate.cfg.Binder)
14:31:11,546 [testGetSave INFO-Binder] - Mapping subclass: org.opentrader.broker.domain.account.AccountImpl -> Account (main net.sf.hibernate.cfg.Binder)
14:31:11,546 [testGetSave INFO-LocalSessionFactoryBean] - Building new Hibernate SessionFactory (main org.springframework.orm.hibernate.LocalSessionFactoryBean)
14:31:11,546 [testGetSave INFO-Configuration] - processing one-to-many association mappings (main net.sf.hibernate.cfg.Configuration)
14:31:11,546 [testGetSave INFO-Configuration] - processing one-to-one association property references (main net.sf.hibernate.cfg.Configuration)
14:31:11,546 [testGetSave INFO-Configuration] - processing foreign key constraints (main net.sf.hibernate.cfg.Configuration)
14:31:11,562 [testGetSave INFO-Dialect] - Using dialect: net.sf.hibernate.dialect.MySQLDialect (main net.sf.hibernate.dialect.Dialect)
14:31:11,578 [testGetSave DEBUG-SQLExceptionConverterFactory] - Using dialect defined converter (main net.sf.hibernate.exception.SQLExceptionConverterFactory)
14:31:11,578 [testGetSave INFO-SettingsFactory] - Maximim outer join fetch depth: 2 (main net.sf.hibernate.cfg.SettingsFactory)
14:31:11,578 [testGetSave INFO-SettingsFactory] - Use outer join fetching: true (main net.sf.hibernate.cfg.SettingsFactory)
14:31:11,578 [testGetSave INFO-DriverManagerConnectionProvider] - Using Hibernate built-in connection pool (not for production use!) (main net.sf.hibernate.connection.DriverManagerConnectionProvider)
14:31:11,578 [testGetSave INFO-DriverManagerConnectionProvider] - Hibernate connection pool size: 20 (main net.sf.hibernate.connection.DriverManagerConnectionProvider)
14:31:11,578 [testGetSave INFO-DriverManagerConnectionProvider] - using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql:///opentrader-test (main net.sf.hibernate.connection.DriverManagerConnectionProvider)
14:31:11,578 [testGetSave INFO-DriverManagerConnectionProvider] - connection properties: {user=opentrader, password=opentrader} (main net.sf.hibernate.connection.DriverManagerConnectionProvider)
14:31:11,578 [testGetSave INFO-TransactionManagerLookupFactory] - No TransactionManagerLookup configured (in JTA environment, use of process level read-write cache is not recommended) (main net.sf.hibernate.transaction.TransactionManagerLookupFactory)
14:31:11,578 [testGetSave DEBUG-DriverManagerConnectionProvider] - total checked-out connections: 0 (main net.sf.hibernate.connection.DriverManagerConnectionProvider)
14:31:11,578 [testGetSave DEBUG-DriverManagerConnectionProvider] - opening new JDBC connection (main net.sf.hibernate.connection.DriverManagerConnectionProvider)
14:31:11,781 [testGetSave DEBUG-DriverManagerConnectionProvider] - created connection to: jdbc:mysql:///opentrader-test, Isolation Level: 4 (main net.sf.hibernate.connection.DriverManagerConnectionProvider)
14:31:11,781 [testGetSave DEBUG-DriverManagerConnectionProvider] - returning connection to pool, pool size: 1 (main net.sf.hibernate.connection.DriverManagerConnectionProvider)
14:31:11,781 [testGetSave INFO-SettingsFactory] - Use scrollable result sets: true (main net.sf.hibernate.cfg.SettingsFactory)
14:31:11,781 [testGetSave INFO-SettingsFactory] - Use JDBC3 getGeneratedKeys(): true (main net.sf.hibernate.cfg.SettingsFactory)
14:31:11,781 [testGetSave INFO-SettingsFactory] - Optimize cache for minimal puts: false (main net.sf.hibernate.cfg.SettingsFactory)
14:31:11,781 [testGetSave INFO-SettingsFactory] - Query language substitutions: {no='N', true=1, yes='Y', false=0} (main net.sf.hibernate.cfg.SettingsFactory)
14:31:11,781 [testGetSave INFO-SettingsFactory] - cache provider: net.sf.hibernate.cache.EhCacheProvider (main net.sf.hibernate.cfg.SettingsFactory)
14:31:11,781 [testGetSave INFO-Configuration] - instantiating and configuring caches (main net.sf.hibernate.cfg.Configuration)
14:31:11,875 [testGetSave INFO-SessionFactoryImpl] - building session factory (main net.sf.hibernate.impl.SessionFactoryImpl)
14:31:11,875 [testGetSave DEBUG-SessionFactoryImpl] - instantiating session factory with properties: {java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition, hibernate.connection.password=opentrader, sun.boot.library.path=C:\jdk1.5.0\jre\bin, java.vm.version=1.5.0-b64, hibernate.connection.username=opentrader, java.vm.vendor=Sun Microsystems Inc., java.vendor.url=http://java.sun.com/, path.separator=;, java.vm.name=Java HotSpot(TM) Client VM, file.encoding.pkg=sun.io, user.country=US, sun.os.patch.level=Service Pack 2, java.vm.specification.name=Java Virtual Machine Specification, user.dir=Q:\opentrader\modules\broker.ftest, java.runtime.version=1.5.0-b64, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, java.endorsed.dirs=C:\jdk1.5.0\jre\lib\endorsed, os.arch=x86, java.io.tmpdir=C:\DOCUME~1\bkaplan\LOCALS~1\Temp\, line.separator=
, java.vm.specification.vendor=Sun Microsystems Inc., user.variant=, os.name=Windows XP, sun.jnu.encoding=Cp1252, java.library.path=C:\jdk1.5.0\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\Python22;C:\Program Files\PC-Doctor for Windows\services;C:\Program Files\cvsnt;c:\sysinternals;%ASPECTWERKZ_HOME%\lib;c:\eclipse\plugins\org.eclipse.swt.win32_3.0.0\ws\win32;C:\Program Files\Executive Software\Diskeeper\;c:\cygwin\bin;c:\cygwin\usr\bin;\c:\Program Files\MySQL\MySQL Server 4.1\bin;C:\Program Files\SSH Communications Security\SSH Secure Shell;C:\apache-ant-1.6.2\bin;C:\Program Files\Apache Software Foundation\Maven 1.0.2\bin, java.specification.name=Java Platform API Specification, java.class.version=49.0, sun.management.compiler=HotSpot Client Compiler, os.version=5.1, user.home=C:\Documents and Settings\bkaplan, user.timezone=GMT-05:00, java.awt.printerjob=sun.awt.windows.WPrinterJob, file.encoding=Cp1252, java.specification.version=1.5, hibernate.connection.driver_class=com.mysql.jdbc.Driver, java.class.path=/c:/eclipse/plugins/org.eclipse.jdt.junit_3.1.0/junitsupport.jar;/c:/eclipse/plugins/org.eclipse.jdt.junit.runtime_3.1.0/junitruntime.jar;Q:\opentrader\modules\broker.ftest\target\bin;Q:\opentrader\modules\broker.ftest\target\bin;Q:\maven.repo.local\junit\jars\junit-3.8.1.jar;Q:\opentrader\modules\broker\target\bin;Q:\opentrader\modules\broker\target\bin;Q:\opentrader\modules\market\target\bin;Q:\opentrader\modules\market\target\bin;Q:\maven.repo.local\log4j\jars\log4j-1.2.9.jar;Q:\maven.repo.local\commons-logging\jars\commons-logging-1.0.4.jar;Q:\maven.repo.local\commons-lang\jars\commons-lang-2.0.jar;Q:\maven.repo.local\commons-collections\jars\commons-collections-3.1.jar;Q:\maven.repo.local\springframework\jars\spring-1.1.3.jar;Q:\maven.repo.local\hibernate\jars\hibernate-2.1.7.jar;Q:\maven.repo.local\mysql\jars\mysql-connector-java-3.1.4-beta-bin.jar;Q:\maven.repo.local\dom4j\jars\dom4j-1.4.jar;Q:\maven.repo.local\cglib\jars\cglib-full-2.0.2.jar;Q:\maven.repo.local\geronimo-spec\jars\geronimo-spec-jta-1.0-M1.jar;Q:\opentrader\infra\hibernate\target\bin;Q:\opentrader\infra\hibernate\target\bin;Q:\maven.repo.local\easymock\jars\easymock-1.1.jar;Q:\maven.repo.local\easymock\jars\easymockclassextension-1.1.jar;Q:\opentrader\test\junit\target\bin;Q:\opentrader\infra\domain\target\bin;Q:\opentrader\infra\domain\target\bin;Q:\maven.repo.local\odmg\jars\odmg-3.0.jar, user.name=bkaplan, hibernate.query.substitutions=true 1, false 0, yes 'Y', no 'N', java.vm.specification.version=1.0, java.home=C:\jdk1.5.0\jre, sun.arch.data.model=32, hibernate.dialect=net.sf.hibernate.dialect.MySQLDialect, hibernate.connection.url=jdbc:mysql:///opentrader-test, user.language=en, java.specification.vendor=Sun Microsystems Inc., awt.toolkit=sun.awt.windows.WToolkit, hibernate.cglib.use_reflection_optimizer=true, java.vm.info=mixed mode, sharing, java.version=1.5.0, java.ext.dirs=C:\jdk1.5.0\jre\lib\ext, sun.boot.class.path=C:\jdk1.5.0\jre\lib\rt.jar;C:\jdk1.5.0\jre\lib\i18n.jar;C:\jdk1.5.0\jre\lib\sunrsasign.jar;C:\jdk1.5.0\jre\lib\jsse.jar;C:\jdk1.5.0\jre\lib\jce.jar;C:\jdk1.5.0\jre\lib\charsets.jar;C:\jdk1.5.0\jre\classes, java.vendor=Sun Microsystems Inc., file.separator=\, hibernate.hbm2ddl.auto=create-drop, java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi, sun.io.unicode.encoding=UnicodeLittle, sun.cpu.endian=little, sun.desktop=windows, sun.cpu.isalist=} (main net.sf.hibernate.impl.SessionFactoryImpl)
14:31:11,906 [testGetSave INFO-DefaultListableBeanFactory] - Destroying singletons in factory {org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [propertyConfigurer,dataSource,sessionFactory,transactionManager]; root of BeanFactory hierarchy} (main org.springframework.beans.factory.support.DefaultListableBeanFactory)
14:31:11,906 [testGetSave DEBUG-DefaultListableBeanFactory] - Retrieving dependent beans for bean 'dataSource' (main org.springframework.beans.factory.support.DefaultListableBeanFactory)
14:31:11,906 [testGetSave DEBUG-DefaultListableBeanFactory] - Applying DestructionAwareBeanPostProcessors to bean with name 'dataSource' (main org.springframework.beans.factory.support.DefaultListableBeanFactory)
14:31:11,906 [testGetSave DEBUG-DefaultListableBeanFactory] - Retrieving dependent beans for bean 'propertyConfigurer' (main org.springframework.beans.factory.support.DefaultListableBeanFactory)
14:31:11,906 [testGetSave DEBUG-DefaultListableBeanFactory] - Applying DestructionAwareBeanPostProcessors to bean with name 'propertyConfigurer' (main org.springframework.beans.factory.support.DefaultListableBeanFactory)
14:31:11,906 [testGetSave INFO-DefaultListableBeanFactory] - Destroying inner beans in factory {org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [propertyConfigurer,dataSource,sessionFactory,transactionManager]; root of BeanFactory hierarchy} (main org.springframework.beans.factory.support.DefaultListableBeanFactory)
[code]
[/i]