-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: <many-to-any> relationship in a map?
PostPosted: Wed Oct 12, 2005 12:09 pm 
Newbie

Joined: Tue Oct 11, 2005 10:45 am
Posts: 6
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

The scenario is as follows:

Classes A and B have a map of objects of class C. I'd like to store the data for C in one table, and have the foreign key map to either A or B. I'm not sure what the appropriate way to express this relationship is, or if it's even the best way. Any help would be appreciated.

Hibernate version:
3.0.5

Mapping documents:
Code:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
   "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
   <class name="C" table="table_for_c">
      <id name="id" column="id" type="long">
         <generator class="increment"/>
      </id>
      <any id-type="long" name="owner" meta-type="string" insert="false" update="false">
         <meta-value value="1" class="A"/>
         <meta-value value="2" class="B"/>
         <column name="parent_type"/>
         <column name="id"/>
      </any>
      <property name="name" column="name" type="string"/>
      <property name="value" column="value" type="string"/>
   </class>
   
   <class name="A" table="table_for_a">
      <id name="id" column="id" type="long">
         <generator class="increment"/>
      </id>
      <property name="name" column="name" type="string"/>
      <map name="parameters" table="parameter" lazy="false" cascade="all">
         <key column="parent_id" not-null="true"/>
         <map-key formula="name" type="string"/>
         <many-to-any id-type="long" meta-type="string">
                <column name="parent_type"/>
                <column name="id"/>
         </many-to-any>
      </map>
   </class>
   
   <class name="B" table="table_for_b">
         <id name="id" column="id" type="long">
            <generator class="increment"/>
         </id>
         <property name="name" column="name" type="string"/>
         <map name="parameters" table="parameter" lazy="false" cascade="all">
            <key column="parent_id" not-null="true"/>
            <map-key formula="name" type="string"/>
            <many-to-any id-type="long" meta-type="string">
                   <column name="parent_type"/>
                   <column name="id"/>
            </many-to-any>
         </map>
   </class>
</hibernate-mapping>




Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:
[code]2005-10-12 12:05:22,964 DEBUG org.hibernate.persister.entity.BasicEntityPersister - Insert 0: insert into parameter (name, value, value_type, type_id, id) values (?, ?, ?, ?, ?)
2005-10-12 12:05:22,964 DEBUG org.hibernate.persister.entity.BasicEntityPersister - Update 0: update parameter set name=?, value=?, value_type=?, type_id=? where id=?
2005-10-12 12:05:22,964 DEBUG org.hibernate.persister.entity.BasicEntityPersister - Delete 0: delete from parameter where id=?
2005-10-12 12:05:22,984 DEBUG org.hibernate.persister.collection.AbstractCollectionPersister - Static SQL for collection: gov.epa.cdx.model.dataflow.Dataflow.services
2005-10-12 12:05:22,984 DEBUG org.hibernate.persister.collection.AbstractCollectionPersister - Row insert: update dataflow_service set dataflow_id=? where id=?
2005-10-12 12:05:22,984 DEBUG org.hibernate.persister.collection.AbstractCollectionPersister - Row delete: update dataflow_service set dataflow_id=null where dataflow_id=? and id=?
2005-10-12 12:05:22,984 DEBUG org.hibernate.persister.collection.AbstractCollectionPersister - One-shot delete: update dataflow_service set dataflow_id=null where dataflow_id=?
2005-10-12 12:05:22,994 DEBUG org.hibernate.persister.collection.AbstractCollectionPersister - Static SQL for collection: gov.epa.cdx.model.activity.Activity.parameters
2005-10-12 12:05:22,994 DEBUG org.hibernate.persister.collection.AbstractCollectionPersister - Row insert: insert into parameter (parent_id, parent_type, id) values (?, ?, ?)
2005-10-12 12:05:22,994 DEBUG org.hibernate.persister.collection.AbstractCollectionPersister - Row update: update parameter set parent_type=?, id=? where parent_id=? and parent_type=? and id=?
2005-10-12 12:05:22,994 DEBUG org.hibernate.persister.collection.AbstractCollectionPersister - Row delete: delete from parameter where parent_id=? and parent_type=? and id=?
2005-10-12 12:05:22,994 DEBUG org.hibernate.persister.collection.AbstractCollectionPersister - One-shot delete: delete from parameter where parent_id=?
2005-10-12 12:05:23,004 DEBUG org.hibernate.persister.collection.AbstractCollectionPersister - Static SQL for collection: gov.epa.cdx.model.dataflow.Dataflow.parameters
2005-10-12 12:05:23,004 DEBUG org.hibernate.persister.collection.AbstractCollectionPersister - Row insert: insert into parameter (parent_id, parent_type, id) values (?, ?, ?)
2005-10-12 12:05:23,004 DEBUG org.hibernate.persister.collection.AbstractCollectionPersister - Row update: update parameter set parent_type=?, id=? where parent_id=? and parent_type=? and id=?
2005-10-12 12:05:23,004 DEBUG org.hibernate.persister.collection.AbstractCollectionPersister - Row delete: delete from parameter where parent_id=? and parent_type=? and id=?
2005-10-12 12:05:23,004 DEBUG org.hibernate.persister.collection.AbstractCollectionPersister - One-shot delete: delete from parameter where parent_id=?
2005-10-12 12:05:23,024 DEBUG org.hibernate.loader.entity.EntityLoader - Static select for entity gov.epa.cdx.model.common.ParameterType: select parametert0_.id as id0_ from parameter_type parametert0_ where parametert0_.id=?
2005-10-12 12:05:23,024 DEBUG org.hibernate.loader.entity.EntityLoader - Static select for entity gov.epa.cdx.model.common.ParameterType: select parametert0_.id as id0_ from parameter_type parametert0_ where parametert0_.id=?
2005-10-12 12:05:23,024 DEBUG org.hibernate.loader.entity.EntityLoader - Static select for entity gov.epa.cdx.model.common.ParameterType: select parametert0_.id as id0_ from parameter_type parametert0_ where parametert0_.id=? for update
2005-10-12 12:05:23,024 DEBUG org.hibernate.loader.entity.EntityLoader - Static select for entity gov.epa.cdx.model.common.ParameterType: select parametert0_.id as id0_ from parameter_type parametert0_ where parametert0_.id=? for update
2005-10-12 12:05:23,034 DEBUG org.hibernate.loader.entity.EntityLoader - Static select for entity gov.epa.cdx.model.dataflow.Service: select service0_.id as id0_, service0_.name as name3_0_, service0_.dataflow_id as dataflow3_3_0_ from dataflow_service service0_ where service0_.id=?
2005-10-12 12:05:23,034 DEBUG org.hibernate.loader.entity.EntityLoader - Static select for entity gov.epa.cdx.model.dataflow.Service: select service0_.id as id0_, service0_.name as name3_0_, service0_.dataflow_id as dataflow3_3_0_ from dataflow_service service0_ where service0_.id=?
2005-10-12 12:05:23,034 DEBUG org.hibernate.loader.entity.EntityLoader - Static select for entity gov.epa.cdx.model.dataflow.Service: select service0_.id as id0_, service0_.name as name3_0_, service0_.dataflow_id as dataflow3_3_0_ from dataflow_service service0_ where service0_.id=? for update
2005-10-12 12:05:23,034 DEBUG org.hibernate.loader.entity.EntityLoader - Static select for entity gov.epa.cdx.model.dataflow.Service: select service0_.id as id0_, service0_.name as name3_0_, service0_.dataflow_id as dataflow3_3_0_ from dataflow_service service0_ where service0_.id=? for update
2005-10-12 12:05:23,034 DEBUG org.hibernate.loader.entity.EntityLoader - Static select for entity gov.epa.cdx.model.activity.ActivityType: select activityty0_.id as id0_ from activity_type activityty0_ where activityty0_.id=?
2005-10-12 12:05:23,034 DEBUG org.hibernate.loader.entity.EntityLoader - Static select for entity gov.epa.cdx.model.activity.ActivityType: select activityty0_.id as id0_ from activity_type activityty0_ where activityty0_.id=?
2005-10-12 12:05:23,034 DEBUG org.hibernate.loader.entity.EntityLoader - Static select for entity gov.epa.cdx.model.activity.ActivityType: select activityty0_.id as id0_ from activity_type activityty0_ where activityty0_.id=? for update
2005-10-12 12:05:23,034 DEBUG org.hibernate.loader.entity.EntityLoader - Static select for entity gov.epa.cdx.model.activity.ActivityType: select activityty0_.id as id0_ from activity_type activityty0_ where activityty0_.id=? for update
2005-10-12 12:05:23,034 DEBUG org.hibernate.loader.entity.EntityLoader - Static select for entity gov.epa.cdx.model.activity.ActivityStatus: select activityst0_.id as id0_ from activity_status activityst0_ where activityst0_.id=?
2005-10-12 12:05:23,034 DEBUG org.hibernate.loader.entity.EntityLoader - Static select for entity gov.epa.cdx.model.activity.ActivityStatus: select activityst0_.id as id0_ from activity_status activityst0_ where activityst0_.id=?
2005-10-12 12:05:23,034 DEBUG org.hibernate.loader.entity.EntityLoader - Static select for entity gov.epa.cdx.model.activity.ActivityStatus: select activityst0_.id as id0_ from activity_status activityst0_ where activityst0_.id=? for update
2005-10-12 12:05:23,034 DEBUG org.hibernate.loader.entity.EntityLoader - Static select for entity gov.epa.cdx.model.activity.ActivityStatus: select activityst0_.id as id0_ from activity_status activityst0_ where activityst0_.id=? for update
2005-10-12 12:05:23,034 DEBUG org.hibernate.loader.entity.EntityLoader - Static select for entity gov.epa.cdx.model.dataflow.Dataflow: select dataflow0_.id as id0_, dataflow0_.name as name2_0_ from dataflow dataflow0_ where dataflow0_.id=?
2005-10-12 12:05:23,034 DEBUG org.hibernate.loader.entity.EntityLoader - Static select for entity gov.epa.cdx.model.dataflow.Dataflow: select dataflow0_.id as id0_, dataflow0_.name as name2_0_ from dataflow dataflow0_ where dataflow0_.id=?
2005-10-12 12:05:23,034 DEBUG org.hibernate.loader.entity.EntityLoader - Static select for entity gov.epa.cdx.model.dataflow.Dataflow: select dataflow0_.id as id0_, dataflow0_.name as name2_0_ from dataflow dataflow0_ where dataflow0_.id=? for update
2005-10-12 12:05:23,034 DEBUG org.hibernate.loader.entity.EntityLoader - Static select for entity gov.epa.cdx.model.dataflow.Dataflow: select dataflow0_.id as id0_, dataflow0_.name as name2_0_ from dataflow dataflow0_ where dataflow0_.id=? for update
2005-10-12 12:05:23,034 DEBUG org.hibernate.loader.entity.EntityLoader - Static select for entity gov.epa.cdx.model.common.Parameter: select parameter0_.id as id0_, parameter0_.parent_type as parent2_1_0_, parameter0_.id as id1_0_, parameter0_.name as name1_0_, parameter0_.value as value1_0_, parameter0_.value_type as value5_1_0_, parameter0_.type_id as type6_1_0_ from parameter parameter0_ where parameter0_.id=?
2005-10-12 12:05:23,034 DEBUG org.hibernate.loader.entity.EntityLoader - Static select for entity gov.epa.cdx.model.common.Parameter: select parameter0_.id as id0_, parameter0_.parent_type as parent2_1_0_, parameter0_.id as id1_0_, parameter0_.name as name1_0_, parameter0_.value as value1_0_, parameter0_.value_type as value5_1_0_, parameter0_.type_id as type6_1_0_ from parameter parameter0_ where parameter0_.id=?
2005-10-12 12:05:23,034 DEBUG org.hibernate.loader.entity.EntityLoader - Static select for entity gov.epa.cdx.model.common.Parameter: select parameter0_.id as id0_, parameter0_.parent_type as parent2_1_0_, parameter0_.id as id1_0_, parameter0_.name as name1_0_, parameter0_.value as value1_0_, parameter0_.value_type as value5_1_0_, parameter0_.type_id as type6_1_0_ from parameter parameter0_ where parameter0_.id=? for update
2005-10-12 12:05:23,034 DEBUG org.hibernate.loader.entity.EntityLoader - Static select for entity gov.epa.cdx.model.common.Parameter: select parameter0_.id as id0_, parameter0_.parent_type as parent2_1_0_, parameter0_.id as id1_0_, parameter0_.name as name1_0_, parameter0_.value as value1_0_, parameter0_.value_type as value5_1_0_, parameter0_.type_id as type6_1_0_ from parameter parameter0_ where parameter0_.id=? for update
2005-10-12 12:05:23,034 DEBUG org.hibernate.loader.entity.EntityLoader - Static select for entity gov.epa.cdx.model.activity.Activity: select activity0_.id as id0_, activity0_.description as descript2_6_0_, activity0_.date_created as date3_6_0_, activity0_.type_id as type4_6_0_, activity0_.status_id as status5_6_0_, activity0_.dataflow_id as dataflow6_6_0_, activity0_.initiator_id as initiator7_6_0_ from activity activity0_ where activity0_.id=?
2005-10-12 12:05:23,034 DEBUG org.hibernate.loader.entity.EntityLoader - Static select for entity gov.epa.cdx.model.activity.Activity: select activity0_.id as id0_, activity0_.description as descript2_6_0_, activity0_.date_created as date3_6_0_, activity0_.type_id as type4_6_0_, activity0_.status_id as status5_6_0_, activity0_.dataflow_id as dataflow6_6_0_, activity0_.initiator_id as initiator7_6_0_ from activity activity0_ where activity0_.id=?
2005-10-12 12:05:23,034 DEBUG org.hibernate.loader.entity.EntityLoader - Static select for entity gov.epa.cdx.model.activity.Activity: select activity0_.id as id0_, activity0_.description as descript2_6_0_, activity0_.date_created as date3_6_0_, activity0_.type_id as type4_6_0_, activity0_.status_id as status5_6_0_, activity0_.dataflow_id as dataflow6_6_0_, activity0_.initiator_id as initiator7_6_0_ from activity activity0_ where activity0_.id=? for update
2005-10-12 12:05:23,034 DEBUG org.hibernate.loader.entity.EntityLoader - Static select for entity gov.epa.cdx.model.activity.Activity: select activity0_.id as id0_, activity0_.description as descript2_6_0_, activity0_.date_created as date3_6_0_, activity0_.type_id as type4_6_0_, activity0_.status_id as status5_6_0_, activity0_.dataflow_id as dataflow6_6_0_, activity0_.initiator_id as initiator7_6_0_ from activity activity0_ where activity0_.id=? for update
2005-10-12 12:05:23,074 DEBUG org.hibernate.loader.collection.OneToManyLoader - Static select for one-to-many gov.epa.cdx.model.dataflow.Dataflow.services: select services0_.dataflow_id as dataflow3_1_, services0_.id as id1_, services0_.id as id0_, services0_.name as name3_0_, services0_.dataflow_id as dataflow3_3_0_ from dataflow_service services0_ where services0_.dataflow_id=?
2005-10-12 12:05:23,074 DEBUG org.hibernate.loader.collection.CollectionLoader - Static select for collection gov.epa.cdx.model.dataflow.Dataflow.parameters: select parameters0_.parent_id as parent7_0_, parameters0_.parent_type as parent2_0_, parameters0_.id as id0_, parameters0_.name as formula0_0_ from parameter parameters0_ where parameters0_.parent_id=?
2005-10-12 12:05:23,074 DEBUG org.hibernate.loader.collection.CollectionLoader - Static select for collection gov.epa.cdx.model.activity.Activity.parameters: select parameters0_.parent_id as parent7_0_, parameters0_.parent_type as parent2_0_, parameters0_.id as id0_, parameters0_.name as formula1_0_ from parameter parameters0_ where parameters0_.parent_id=?
2005-10-12 12:05:23,084 DEBUG org.hibernate.impl.SessionFactoryObjectFactory - initializing class SessionFactoryObjectFactory
2005-10-12 12:05:23,084 DEBUG org.hibernate.impl.SessionFactoryObjectFactory - registered: 9484babe06e594220106e594260c0000 (unnamed)
2005-10-12 12:05:23,084 INFO org.hibernate.impl.SessionFactoryObjectFactory - Not binding factory to JNDI, no JNDI name configured
2005-10-12 12:05:23,084 DEBUG org.hibernate.impl.SessionFactoryImpl - instantiated session factory
2005-10-12 12:05:23,084 INFO org.hibernate.impl.SessionFactoryImpl - Checking 0 named queries
2005-10-12 12:05:23,135 DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Invoking BeanPostProcessors after initialization of bean 'coreSessionFactory'
2005-10-12 12:05:23,135 DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Calling code asked for FactoryBean instance for name 'coreSessionFactory'
2005-10-12 12:05:23,135 DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Returning cached instance of singleton bean 'coreSessionFactory'
2005-10-12 12:05:23,135 DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Bean with name 'coreSessionFactory' is a factory bean
2005-10-12 12:05:23,155 DEBUG org.springframework.context.support.ClassPathXmlApplicationContext - Publishing event in context [org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=8831815]: org.springframework.context.event.ContextRefreshedEvent[source=org.springframework.context.support.ClassPathXmlApplicationContext: display name [org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=8831815]; startup date [Wed Oct 12 12:05:20 EDT 2005]; root of context hierarchy]
2005-10-12 12:05:23,155 DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Returning cached instance of singleton bean 'coreSessionFactory'
2005-10-12 12:05:23,155 DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Bean with name 'coreSessionFactory' is a factory bean
2005-10-12 12:05:23,185 DEBUG org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Using JAXP implementation [org.apache.crimson.jaxp.DocumentBuilderFactoryImpl@2b323e]
2005-10-12 12:05:23,185 INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [org/springframework/jdbc/support/sql-error-codes.xml]
2005-10-12 12:05:23,185 DEBUG org.springframework.beans.factory.xml.ResourceEntityResolver - Trying to resolve XML entity with public ID [-//SPRING//DTD BEAN//EN] and system ID [http://www.springframework.org/dtd/spring-beans.dtd]
2005-10-12 12:05:23,185 DEBUG org.springframework.beans.factory.xml.ResourceEntityResolver - Trying to locate [spring-beans.dtd] in Spring jar
2005-10-12 12:05:23,185 DEBUG org.springframework.beans.factory.xml.ResourceEntityResolver - Found beans DTD [http://www.springframework.org/dtd/spring-beans.dtd] in classpath
2005-10-12 12:05:23,195 DEBUG org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser - Loading bean definitions
2005-10-12 12:05:23,195 DEBUG org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser - Default lazy init 'false'
2005-10-12 12:05:23,195 DEBUG org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser - Default autowire 'no'
2005-10-12 12:05:23,205 DEBUG org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser - Default dependency check 'none'
2005-10-12 12:05:23,205 DEBUG org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser - Found 8 <bean> elements in class path resource [org/springframework/jdbc/support/sql-error-codes.xml]
2005-10-12 12:05:23,205 DEBUG org.springframework.core.CollectionFactory - Creating java.util.LinkedHashMap
2005-10-12 12:05:23,205 DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'DB2'
2005-10-12 12:05:23,205 DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating instance of bean 'DB2' with merged definition [Root bean: class [org.springframework.jdbc.support.SQLErrorCodes]; abstract=false; singleton=true; lazyInit=false; autowire=0; dependencyCheck=0; initMethodName=null; destroyMethodName=null; factoryMethodName=null; factoryBeanName=null; defined in class path resource [org/springframework/jdbc/support/sql-error-codes.xml]]
2005-10-12 12:05:23,205 DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Invoking BeanPostProcessors before instantiation of bean 'DB2'
2005-10-12 12:05:23,205 DEBUG org.springframework.beans.CachedIntrospectionResults - Getting BeanInfo for class [org.springframework.jdbc.support.SQLErrorCodes]
2005-10-12 12:05:23,205 DEBUG org.springframework.beans.CachedIntrospectionResults - Caching PropertyDescriptors for class [org.springframework.jdbc.support.SQLErrorCodes]
2005-10-12 12:05:23,205 DEBUG org.springframework.beans.CachedIntrospectionResults - Found property 'badSqlGrammarCodes' of type [[Ljava.lang.String;]
2005-10-12 12:05:23,205 DEBUG org.springframework.beans.CachedIntrospectionResults - Found property 'cannotAcquireLockCodes' of type [[Ljava.lang.String;]
2005-10-12 12:05:23,205 DEBUG org.springframework.beans.CachedIntrospectionResults - Found property 'cannotSerializeTransactionCodes' of type [[Ljava.lang.String;]
2005-10-12 12:05:23,205 DEBUG org.springframework.beans.CachedIntrospectionResults - Found property 'class' of type [java.lang.Class]
2005-10-12 12:05:23,205 DEBUG org.springframework.beans.CachedIntrospectionResults - Found property 'customTranslations' of type [[Lorg.springframework.jdbc.support.CustomSQLErrorCodesTranslation;]
2005-10-12 12:05:23,205 DEBUG org.springframework.beans.CachedIntrospectionResults - Found property 'dataAccessResourceFailureCodes' of type [[Ljava.lang.String;]
2005-10-12 12:05:23,205 DEBUG org.springframework.beans.CachedIntrospectionResults - Found property 'dataIntegrityViolationCodes' of type [[Ljava.lang.String;]
2005-10-12 12:05:23,205 DEBUG org.springframework.beans.CachedIntrospectionResults - Found property 'databaseProductName' of type [java.lang.String]
2005-10-12 12:05:23,205 DEBUG org.springframework.beans.CachedIntrospectionResults - Found property 'databaseProductNames' of type [[Ljava.lang.String;]
2005-10-12 12:05:23,205 DEBUG org.springframework.beans.CachedIntrospectionResults - Found property 'deadlockLoserCodes' of type [[Ljava.lang.String;]
2005-10-12 12:05:23,215 DEBUG org.springframework.beans.CachedIntrospectionResults - Found property 'invalidResultSetAccessCodes' of type [[Ljava.lang.String;]
2005-10-12 12:05:23,215 DEBUG org.springframework.beans.CachedIntrospectionResults - Found property 'useSqlStateForTranslation' of type [boolean]
2005-10-12 12:05:23,215 DEBUG org.springframework.beans.CachedIntrospectionResults - Class [org.springframework.jdbc.support.SQLErrorCodes] is cache-safe
2005-10-12 12:05:23,215 DEBUG org.springframework.beans.BeanWrapperImpl - About to invoke write method [public void org.springframework.jdbc.support.SQLErrorCodes.setDatabaseProductName(java.lang.String)] on object of class [org.springframework.jdbc.support.SQLErrorCodes]
2005-10-12 12:05:23,215 DEBUG org.springframework.beans.BeanWrapperImpl - Invoked write method [public void org.springframework.jdbc.support.SQLErrorCodes.setDatabaseProductName(java.lang.String)] with value of type [java.lang.String]
2005-10-12 12:05:23,215 DEBUG org.springframework.beans.BeanWrapperImpl - Converting String to [class [Ljava.lang.String;] using property editor [org.springframework.beans.propertyeditors.StringArrayPropertyEditor@1038de7]
2005-10-12 12:05:23,225 DEBUG org.springframework.beans.BeanWrapperImpl - About to invoke write method [public void org.springframework.jdbc.support.SQLErrorCodes.setBadSqlGrammarCodes(java.lang.String[])] on object of class [org.springframework.jdbc.support.SQLErrorCodes]
2005-10-12 12:05:23,225 DEBUG org.springframework.beans.BeanWrapperImpl - Invoked write method [public void org.springframework.jdbc.support.SQLErrorCodes.setBadSqlGrammarCodes(java.lang.String[])] with value of type [[Ljava.lang.String;]
2005-10-12 12:05:23,225 DEBUG org.springframework.beans.BeanWrapperImpl - Converting String to [class [Ljava.lang.String;] using property editor [org.springframework.beans.propertyeditors.StringArrayPropertyEditor@1038de7]
2005-10-12 12:05:23,225 DEBUG org.springframework.beans.BeanWrapperImpl - About to invoke write method [public void org.springframework.jdbc.support.SQLErrorCodes.setDataIntegrityViolationCodes(java.lang.String[])] on object of class [org.springframework.jdbc.support.SQLErrorCodes]
2005-10-12 12:05:23,225 DEBUG org.springframework.beans.BeanWrapperImpl - Invoked write method [public void org.springframework.jdbc.support.SQLErrorCodes.setDataIntegrityViolationCodes(java.lang.String[])] with value of type [[Ljava.lang.String;]
2005-10-12 12:05:23,225 DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Invoking BeanPostProcessors before initialization of bean 'DB2'
2005-10-12 12:05:23,225 DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Invoking BeanPostProcessors after initialization of bean 'DB2'
2005-10-12 12:05:23,225 DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'HSQL'
2005-10-12 12:05:23,225 DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating instance of bean 'HSQL' with merged definition [Root bean: class [org.springframework.jdbc.support.SQLErrorCodes]; abstract=false; singleton=true; lazyInit=false; autowire=0; dependencyCheck=0; initMethodName=null; destroyMethodName=null; factoryMethodName=null; factoryBeanName=null; defined in class path resource [org/springframework/jdbc/support/sql-error-codes.xml]]
2005-10-12 12:05:23,225 DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Invoking BeanPostProcessors before instantiation of bean 'HSQL'
2005-10-12 12:05:23,225 DEBUG org.springframework.beans.CachedIntrospectionResults - Using cached introspection results for class [org.springframework.jdbc.support.SQLErrorCodes]
2005-10-12 12:05:23,225 DEBUG org.springframework.beans.BeanWrapperImpl - About to invoke write method [public void org.springframework.jdbc.support.SQLErrorCodes.setDatabaseProductName(java.lang.String)] on object of class [org.springframework.jdbc.support.SQLErrorCodes]
2005-10-12 12:05:23,225 DEBUG org.springframework.beans.BeanWrapperImpl - Invoked write method [public void org.springframework.jdbc.support.SQLErrorCodes.setDatabaseProductName(java.lang.String)] with value of type [java.lang.String]
2005-10-12 12:05:23,225 DEBUG org.springframework.beans.BeanWrapperImpl - Converting String to [class [Ljava.lang.String;] using property editor [org.springframework.beans.propertyeditors.StringArrayPropertyEditor@5976c2]
2005-10-12 12:05:23,225 DEBUG org.springframework.beans.BeanWrapperImpl - About to invoke write method [public void org.springframework.jdbc.support.SQLErrorCodes.setBadSqlGrammarCodes(java.lang.String[])] on object of class [org.springframework.jdbc.support.SQLErrorCodes]
2005-10-12 12:05:23,225 DEBUG org.springframework.beans.BeanWrapperImpl - Invoked write method [public void org.springframework.jdbc.support.SQLErrorCodes.setBadSqlGrammarCodes(java.lang.String[])] with value of type [[Ljava.lang.String;]
2005-10-12 12:05:23,225 DEBUG org.springframework.beans.BeanWrapperImpl - Converting String to [class [Ljava.lang.String;] using property editor [org.springframework.beans.propertyeditors.StringArrayPropertyEditor@5976c2]
2005-10-12 12:05:23,225 DEBUG org.springframework.beans.BeanWrapperImpl - About to invoke write method [public void org.springframework.jdbc.support.SQLErrorCodes.setDataIntegrityViolationCodes(java.lang.String[])] on object of class [org.springframework.jdbc.support.SQLErrorCodes]
2005-10-12 12:05:23,225 DEBUG org.springframework.beans.BeanWrapperImpl - Invoked write method [public void org.springframework.jdbc.support.SQLErrorCodes.setDataIntegrityViolationCodes(java.lang.String[])] with value of type [[Ljava.lang.String;]
2005-10-12 12:05:23,225 DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Invoking BeanPostProcessors before initialization of bean 'HSQL'
2005-10-12 12:05:23,225 DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Invoking BeanPostProcessors after initialization of bean 'HSQL'
2005-10-12 12:05:23,225 DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'MS-SQL'
2005-10-12 12:05:23,225 DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating instance of bean 'MS-SQL' with merged definition [Root bean: class [org.springframework.jdbc.support.SQLErrorCodes]; abstract=false; singleton=true; lazyInit=false; autowire=0; dependencyCheck=0; initMethodName=null; destroyMethodName=null; factoryMethodName=null; factoryBeanName=null; defined in class path resource [org/springframework/jdbc/support/sql-error-codes.xml]]
2005-10-12 12:05:23,225 DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Invoking BeanPostProcessors before instantiation of bean 'MS-SQL'
2005-10-12 12:05:23,225 DEBUG org.springframework.beans.CachedIntrospectionResults - Using cached introspection results for class [org.springframework.jdbc.support.SQLErrorCodes]
2005-10-12 12:05:23,225 DEBUG org.springframework.beans.BeanWrapperImpl - About to invoke write method [public void org.springframework.jdbc.support.SQLErrorCodes.setDatabaseProductName(java.lang.String)] on object of class [org.springframework.jdbc.support.SQLErrorCodes]
2005-10-12 12:05:23,225 DEBUG org.springframework.beans.BeanWrapperImpl - Invoked write method [public void org.springframework.jdbc.support.SQLErrorCodes.setDatabaseProductName(java.lang.String)] with value of type [java.lang.String]
2005-10-12 12:05:23,225 DEBUG org.springframework.beans.BeanWrapperImpl - Converting String to [class [Ljava.lang.String;] using property editor [org.springframework.beans.propertyeditors.StringArrayPropertyEditor@183e7de]
2005-10-12 12:05:23,225 DEBUG org.springframework.beans.BeanWrapperImpl - About to invoke write method [public void org.springframework.jdbc.support.SQLErrorCodes.setBadSqlGrammarCodes(java.lang.String[])] on object of class [org.springframework.jdbc.support.SQLErrorCodes]
2005-10-12 12:05:23,225 DEBUG org.springframework.beans.BeanWrapperImpl - Invoked write method [public void org.springframework.jdbc.support.SQLErrorCodes.setBadSqlGrammarCodes(java.lang.String[])] with value of type [[Ljava.lang.String;]
2005-10-12 12:05:23,225 DEBUG org.springframework.beans.BeanWrapperImpl - Converting String to [class [Ljava.lang.String;] using property editor [org.springframework.beans.propertyeditors.StringArrayPropertyEditor@183e7de]
2005-10-12 12:05:23,225 DEBUG org.springframework.beans.BeanWrapperImpl - About to invoke write method [public void org.springframework.jdbc.support.SQLErrorCodes.setDataIntegrityViolationCodes(java.lang.String[])] on object of class [org.springframework.jdbc.support.SQLErrorCodes]
2005-10-12 12:05:23,225 DEBUG org.springframework.beans.BeanWrapperImpl - Invoked write method [public void org.springframework.jdbc.support.SQLErrorCodes.setDataIntegrityViolationCodes(java.lang.String[])] with value of type [[Ljava.lang.String;]
2005-10-12 12:05:23,225 DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Invoking BeanPostProcessors before initialization of bean 'MS-SQL'
2005-10-12 12:05:23,225 DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Invoking BeanPostProcessors after initialization of bean 'MS-SQL'
2005-10-12 12:05:23,235 DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'MySQL'
2005-10-12 12:05:23,235 DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating instance of bean 'MySQL' with merged definition [Root bean: class [org.springframework.jdbc.support.SQLErrorCodes]; abstract=false; singleton=true; lazyInit=false; autowire=0; dependencyCheck=0; initMethodName=null; destroyMethodName=null; factoryMethodName=null; factoryBeanName=null; defined in class path resource [org/springframework/jdbc/support/sql-error-codes.xml]]
2005-10-12 12:05:23,235 DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Invoking BeanPostProcessors before instantiation of bean 'MySQL'
2005-10-12 12:05:23,235 DEBUG org.springframework.beans.CachedIntrospectionResults - Using cached introspection results for class [org.springframework.jdbc.support.SQLErrorCodes]
2005-10-12 12:05:23,235 DEBUG org.springframework.beans.BeanWrapperImpl - Converting String to [class [Ljava.lang.String;] using property editor [org.springframework.beans.propertyeditors.StringArrayPropertyEditor@ebcdbb]
2005-10-12 12:05:23,235 DEBUG org.springframework.beans.BeanWrapperImpl - About to invoke write method [public void org.springframework.jdbc.support.SQLErrorCodes.setBadSqlGrammarCodes(java.lang.String[])] on object of class [org.springframework.jdbc.support.SQLErrorCodes]
2005-10-12 12:05:23,235 DEBUG org.springframework.beans.BeanWrapperImpl - Invoked write method [public void org.springframework.jdbc.support.SQLErrorCodes.setBadSqlGrammarCodes(java.lang.String[])] with value of type [[Ljava.lang.String;]
2005-10-12 12:05:23,235 DEBUG org.springframework.beans.BeanWrapperImpl - Converting String to [class [Ljava.lang.String;] using property editor [org.springframework.beans.propertyeditors.StringArrayPropertyEditor@ebcdbb]
2005-10-12 12:05:23,235 DEBUG org.springframework.beans.BeanWrapperImpl - About to invoke write method [public void org.springframework.jdbc.support.SQLErrorCodes.setDataIntegrityViolationCodes(java.lang.String[])] on object of class [org.springframework.jdbc.support.SQLErrorCodes]
2005-10-12 12:05:23,235 DEBUG org.springframework.beans.BeanWrapperImpl - Invoked write method [public void org.springframework.jdbc.support.SQLErrorCodes.setDataIntegrityViolationCodes(java.lang.String[])] with value of type [[Ljava.lang.String;]
2005-10-12 12:05:23,235 DEBUG org.springframework.beans.BeanWrapperImpl - Converting String to [class [Ljava.lang.String;] using property editor [org.springframework.beans.propertyeditors.StringArrayPropertyEditor@ebcdbb]
2005-10-12 12:05:23,235 DEBUG org.springframework.beans.BeanWrapperImpl - About to invoke write method [public void org.springframework.jdbc.support.SQLErrorCodes.setDeadlockLoserCodes(java.lang.String[])] on object of class [org.springframework.jdbc.support.SQLErrorCodes]
2005-10-12 12:05:23,235 DEBUG org.springframework.beans.BeanWrapperImpl - Invoked write method [public void org.springframework.jdbc.support.SQLErrorCodes.setDeadlockLoserCodes(java.lang.String[])] with value of type [[Ljava.lang.String;]
2005-10-12 12:05:23,235 DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Invoking BeanPostProcessors before initialization of bean 'MySQL'
2005-10-12 12:05:23,235 DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Invoking BeanPostProcessors after initialization of bean 'MySQL'
2005-10-12 12:05:23,235 DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'Oracle'
2005-10-12 12:05:23,235 DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating instance of bean 'Oracle' with merged definition [Root bean: class [org.springframework.jdbc.support.SQLErrorCodes]; abstract=false; singleton=true; lazyInit=false; autowire=0; dependencyCheck=0; initMethodName=null; destroyMethodName=null; factoryMethodName=null; factoryBeanName=null; defined in class path resource [org/springframework/jdbc/support/sql-error-codes.xml]]
2005-10-12 12:05:23,245 DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Invoking BeanPostProcessors before instantiation of bean 'Oracle'
2005-10-12 12:05:23,245 DEBUG org.springframework.beans.CachedIntrospectionResults - Using cached introspection results for class [org.springframework.jdbc.support.SQLErrorCodes]
2005-10-12 12:05:23,245 DEBUG org.springframework.beans.BeanWrapperImpl - Converting String to [class [Ljava.lang.String;] using property editor [org.springframework.beans.propertyeditors.StringArrayPropertyEditor@10fe2b9]
2005-10-12 12:05:23,245 DEBUG org.springframework.beans.BeanWrapperImpl - About to invoke write method [public void org.springframework.jdbc.support.SQLErrorCodes.setBadSqlGrammarCodes(java.lang.String[])] on object of class [org.springframework.jdbc.support.SQLErrorCodes]
2005-10-12 12:05:23,245 DEBUG org.springframework.beans.BeanWrapperImpl - Invoked write method [public void org.springframework.jdbc.support.SQLErrorCodes.setBadSqlGrammarCodes(java.lang.String[])] with value of type [[Ljava.lang.String;]
2005-10-12 12:05:23,245 DEBUG org.springframework.beans.BeanWrapperImpl - Converting String to [class [Ljava.lang.String;] using property editor [org.springframework.beans.propertyeditors.StringArrayPropertyEditor@10fe2b9]
2005-10-12 12:05:23,245 DEBUG org.springframework.beans.BeanWrapperImpl - About to invoke write method [public void org.springframework.jdbc.support.SQLErrorCodes.setInvalidResultSetAccessCodes(java.lang.String[])] on object of class [org.springframework.jdbc.support.SQLErrorCodes]
2005-10-12 12:05:23,245 DEBUG org.springframework.beans.BeanWrapperImpl - Invoked write method [public void org.springframework.jdbc.support.SQLErrorCodes.setInvalidResultSetAccessCodes(java.lang.String[])] with value of type [[Ljava.lang.String;]
2005-10-12 12:05:23,245 DEBUG org.springframework.beans.BeanWrapperImpl - Converting String to [class [Ljava.lang.String;] using property editor [org.springframework.beans.propertyeditors.StringArrayPropertyEditor@10fe2b9]
2005-10-12 12:05:23,245 DEBUG org.springframework.beans.BeanWrapperImpl - About to invoke write method [public void org.springframework.jdbc.support.SQLErrorCodes.setDataAccessResourceFailureCodes(java.lang.String[])] on object of class [org.springframework.jdbc.support.SQLErrorCodes]
2005-10-12 12:05:23,245 DEBUG org.springframework.beans.BeanWrapperImpl - Invoked write method [public void org.springframework.jdbc.support.SQLErrorCodes.setDataAccessResourceFailureCodes(java.lang.String[])] with value of type [[Ljava.lang.String;]
2005-10-12 12:05:23,245 DEBUG org.springframework.beans.BeanWrapperImpl - Converting String to [class [Ljava.lang.String;] using property editor [org.springframework.beans.propertyeditors.StringArrayPropertyEditor@10fe2b9]
2005-10-12 12:05:23,245 DEBUG org.springframework.beans.BeanWrapperImpl - About to invoke write method [public void org.springframework.jdbc.support.SQLErrorCodes.setDataIntegrityViolationCodes(java.lang.String[])] on object of class [org.springframework.jdbc.support.SQLErrorCodes]
2005-10-12 12:05:23,245 DEBUG org.springframework.beans.BeanWrapperImpl - Invoked write method [public void org.springframework.jdbc.support.SQLErrorCodes.setDataIntegrityViolationCodes(java.lang.String[])] with value of type [[Ljava.lang.String;]
2005-10-12 12:05:23,245 DEBUG org.springframework.beans.BeanWrapperImpl - Converting String to [class [Ljava.lang.String;] using property editor [org.springframework.beans.propertyeditors.StringArrayPropertyEditor@10fe2b9]
2005-10-12 12:05:23,245 DEBUG org.springframework.beans.BeanWrapperImpl - About to invoke write method [public void org.springframework.jdbc.support.SQLErrorCodes.setCannotAcquireLockCodes(java.lang.String[])] on object of class [org.springframework.jdbc.support.SQLErrorCodes]
2005-10-12 12:05:23,245 DEBUG org.springframework.beans.BeanWrapperImpl - Invoked write method [public void org.springframework.jdbc.support.SQLErrorCodes.setCannotAcquireLockCodes(java.lang.String[])] with value of type [[Ljava.lang.String;]
2005-10-12 12:05:23,245 DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Invoking BeanPostProcessors before initialization of bean 'Oracle'
2005-10-12 12:05:23,245 DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Invoking BeanPostProcessors after initialization of bean 'Oracle'
2005-10-12 12:05:23,245 DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'Informix'
2005-10-12 12:05:23,245 DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating instance of bean 'Informix' with merged definition [Root bean: class [org.springframework.jdbc.support.SQLErrorCodes]; abstract=false; singleton=true; lazyInit=false; autowire=0; dependencyCheck=0; initMethodName=null; destroyMethodName=null; factoryMethodName=null; factoryBeanName=null; defined in class path resource [org/springframework/jdbc/support/sql-error-codes.xml]]
2005-10-12 12:05:23,245 DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Invoking BeanPostProcessors before instantiation of bean 'Informix'
2005-10-12 12:05:23,245 DEBUG org.springframework.beans.CachedIntrospectionResults - Using cached introspection results for class [org.springframework.jdbc.support.SQLErrorCodes]
2005-10-12 12:05:23,245 DEBUG org.springframework.beans.BeanWrapperImpl - About to invoke write method [public void org.springframework.jdbc.support.SQLErrorCodes.setDatabaseProductName(java.lang.String)] on object of class [org.springframework.jdbc.support.SQLErrorCodes]
2005-10-12 12:05:23,245 DEBUG org.springframework.beans.BeanWrapperImpl - Invoked write method [public void org.springframework.jdbc.support.SQLErrorCodes.setDatabaseProductName(java.lang.String)] with value of type [java.lang.String]
2005-10-12 12:05:23,245 DEBUG org.springframework.beans.BeanWrapperImpl - Converting String to [class [Ljava.lang.String;] using property editor [org.springframework.beans.propertyeditors.StringArrayPropertyEditor@1ee148b]
2005-10-12 12:05:23,245 DEBUG org.springframework.beans.BeanWrapperImpl - About to invoke write method [public void org.springframework.jdbc.support.SQLErrorCodes.setBadSqlGrammarCodes(java.lang.String[])] on object of class [org.springframework.jdbc.support.SQLErrorCodes]
2005-10-12 12:05:23,245 DEBUG org.springframework.beans.BeanWrapperImpl - Invoked write method [public void org.springframework.jdbc.support.SQLErrorCodes.setBadSqlGrammarCodes(java.lang.String[])] with value of type [[Ljava.lang.String;]
2005-10-12 12:05:23,245 DEBUG org.springframework.beans.BeanWrapperImpl - Converting String to [class [Ljava.lang.String;] using property editor [org.springframework.beans.propertyeditors.StringArrayPropertyEditor@1ee148b]
2005-10-12 12:05:23,245 DEBUG org.springframework.beans.BeanWrapperImpl - About to invoke write method [public void org.springframework.jdbc.support.SQLErrorCodes.setDataIntegrityViolationCodes(java.lang.String[])] on object of class [org.springframework.jdbc.support.SQLErrorCodes]
2005-10-12 12:05:23,245 DEBUG org.springframework.beans.BeanWrapperImpl - Invoked write method [public void org.springframework.jdbc.support.SQLErrorCodes.setDataIntegrityViolationCodes(java.lang.String[])] with value of type [[Ljava.lang.String;]
2005-10-12 12:05:23,245 DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Invoking BeanPostProcessors before initialization of bean 'Informix'
2005-10-12 12:05:23,245 DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Invoking BeanPostProcessors after initialization of bean 'Informix'
2005-10-12 12:05:23,245 DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'PostgreSQL'
2005-10-12 12:05:23,245 DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating instance of bean 'PostgreSQL' with merged definition [Root bean: class [org.springframework.jdbc.support.SQLErrorCodes]; abstract=false; singleton=true; lazyInit=false; autowire=0; dependencyCheck=0; initMethodName=null; destroyMethodName=null; factoryMethodName=null; factoryBeanName=null; defined in class path resource [org/springframework/jdbc/support/sql-error-codes.xml]]
2005-10-12 12:05:23,245 DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Invoking BeanPostProcessors before instantiation of bean 'PostgreSQL'
2005-10-12 12:05:23,245 DEBUG org.springframework.beans.CachedIntrospectionResults - Using cached introspection results for class [org.springframework.jdbc.support.SQLErrorCodes]
2005-10-12 12:05:23,245 DEBUG org.springframework.beans.BeanWrapperImpl - Converting String to [boolean] using property editor [org.springframework.beans.propertyeditors.CustomBooleanEditor@186d484]
2005-10-12 12:05:23,245 DEBUG org.springframework.beans.BeanWrapperImpl - About to invoke write method [public void org.springframework.jdbc.support.SQLErrorCodes.setUseSqlStateForTranslation(boolean)] on object of class [org.springframework.jdbc.support.SQLErrorCodes]
2005-10-12 12:05:23,245 DEBUG org.springframework.beans.BeanWrapperImpl - Invoked write method [public void org.springframework.jdbc.support.SQLErrorCodes.setUseSqlStateForTranslation(boolean)] with value of type [boolean]
2005-10-12 12:05:23,245 DEBUG org.springframework.beans.BeanWrapperImpl - Converting String to [class [Ljava.lang.String;] using property editor [org.springframework.beans.propertyeditors.StringArrayPropertyEditor@ea48be]
2005-10-12 12:05:23,245 DEBUG org.springframework.beans.BeanWrapperImpl - About to invoke write method [public void org.springframework.jdbc.support.SQLErrorCodes.setBadSqlGrammarCodes(java.lang.String[])] on object of class [org.springframework.jdbc.support.SQLErrorCodes]
2005-10-12 12:05:23,245 DEBUG org.springframework.beans.BeanWrapperImpl - Invoked write method [public void org.springframework.jdbc.support.SQLErrorCodes.setBadSqlGrammarCodes(java.lang.String[])] with value of type [[Ljava.lang.String;]
2005-10-12 12:05:23,245 DEBUG org.springframework.beans.BeanWrapperImpl - Converting String to [class [Ljava.lang.String;] using property editor [org.springframework.beans.propertyeditors.StringArrayPropertyEditor@ea48be]
2005-10-12 12:05:23,245 DEBUG org.springframework.beans.BeanWrapperImpl - About to invoke write method [public void org.springframework.jdbc.support.SQLErrorCodes.setDataIntegrityViolationCodes(java.lang.String[])] on object of class [org.springframework.jdbc.support.SQLErrorCodes]
2005-10-12 12:05:23,245 DEBUG org.springframework.beans.BeanWrapperImpl - Invoked write method [public void org.springframework.jdbc.support.SQLErrorCodes.setDataIntegrityViolationCodes(java.lang.String[])] with value of type [[Ljava.lang.String;]
2005-10-12 12:05:23,245 DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Invoking BeanPostProcessors before initialization of bean 'PostgreSQL'
2005-10-12 12:05:23,245 DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Invoking BeanPostProcessors after initialization of bean 'PostgreSQL'
2005-10-12 12:05:23,245 DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'Sybase'
2005-10-12 12:05:23,245 DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating instance of bean 'Sybase' with merged definition [Root bean: class [org.springframework.jdbc.support.SQLErrorCodes]; abstract=false; singleton=true; lazyInit=false; autowire=0; dependencyCheck=0; initMethodName=null; destroyMethodName=null; factoryMethodName=null; factoryBeanName=null; defined in class path resource [org/springframework/jdbc/support/sql-error-codes.xml]]
2005-10-12 12:05:23,245 DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Invoking BeanPostProcessors before instantiation of bean 'Sybase'
2005-10-12 12:05:23,245 DEBUG org.springframework.beans.CachedIntrospectionResults - Using cached introspection results for class [org.springframework.jdbc.support.SQLErrorCodes]
2005-10-12 12:05:23,255 DEBUG org.springframework.beans.BeanWrapperImpl - About to invoke write method [public void org.springframework.jdbc.support.SQLErrorCodes.setDatabaseProductNames(java.lang.String[])] on object of class [org.springframework.jdbc.support.SQLErrorCodes]
2005-10-12 12:05:23,255 DEBUG org.springframework.beans.BeanWrapperImpl - Invoked write method [public void org.springframework.jdbc.support.SQLErrorCodes.setDatabaseProductNames(java.lang.String[])] with value of type [[Ljava.lang.String;]
2005-10-12 12:05:23,255 DEBUG org.springframework.beans.BeanWrapperImpl - Converting String to [class [Ljava.lang.String;] using property editor [org.springframework.beans.propertyeditors.StringArrayPropertyEditor@14dd758]
2005-10-12 12:05:23,255 DEBUG org.springframework.beans.BeanWrapperImpl - About to invoke write method [public void org.springframework.jdbc.support.SQLErrorCodes.setBadSqlGrammarCodes(java.lang.String[])] on object of class [org.springframework.jdbc.support.SQLErrorCodes]
2005-10-12 12:05:23,255 DEBUG org.springframework.beans.BeanWrapperImpl - Invoked write method [public void org.springframework.jdbc.support.SQLErrorCodes.setBadSqlGrammarCodes(java.lang.String[])] with value of type [[Ljava.lang.String;]
2005-10-12 12:05:23,255 DEBUG org.springframework.beans.BeanWrapperImpl - Converting String to [class [Ljava.lang.String;] using property editor [org.springframework.beans.propertyeditors.StringArrayPropertyEditor@14dd758]
2005-10-12 12:05:23,255 DEBUG org.springframework.beans.BeanWrapperImpl - About to invoke write method [public void org.springframework.jdbc.support.SQLErrorCodes.setDataIntegrityViolationCodes(java.lang.String[])] on object of class [org.springframework.jdbc.support.SQLErrorCodes]
2005-10-12 12:05:23,255 DEBUG org.springframework.beans.BeanWrapperImpl - Invoked write method [public void org.springframework.jdbc.support.SQLErrorCodes.setDataIntegrityViolationCodes(java.lang.String[])] with value of type [[Ljava.lang.String;]
2005-10-12 12:05:23,255 DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Invoking BeanPostProcessors before initialization of bean 'Sybase'
2005-10-12 12:05:23,255 DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Invoking BeanPostProcessors after initialization of bean 'Sybase'
2005-10-12 12:05:23,255 INFO org.springframework.jdbc.support.SQLErrorCodesFactory - SQLErrorCodes loaded: [DB2, HSQL, MS-SQL, MySQL, Oracle, Informix, PostgreSQL, Sybase]
2005-10-12 12:05:23,255 DEBUG org.springframework.jdbc.support.SQLErrorCodesFactory - Looking up default SQLErrorCodes for DataSource [org.springframework.jdbc.datasource.DriverManagerDataSource@1a0225b]
2005-10-12 12:05:23,275 DEBUG org.springframework.jdbc.datasource.DataSourceUtils - Fetching JDBC Connection from DataSource
2005-10-12 12:05:23,275 DEBUG org.springframework.jdbc.datasource.DriverManagerDataSource - Creating new JDBC Connection to [jdbc:mysql://localhost:3306/cdxcore2]
2005-10-12 12:05:23,315 DEBUG org.springframework.jdbc.datasource.DataSourceUtils - Returning JDBC Connection to DataSource
2005-10-12 12:05:23,315 DEBUG org.springframework.jdbc.support.SQLErrorCodesFactory - Database product name cached for DataSource [org.springframework.jdbc.datasource.DriverManagerDataSource@1a0225b]: name is 'MySQL'
2005-10-12 12:05:23,315 DEBUG org.springframework.jdbc.support.SQLErrorCodesFactory - SQL error codes for 'MySQL' found
2005-10-12 12:05:23,315 DEBUG org.springframework.orm.hibernate3.SessionFactoryUtils - Opening Hibernate Session
2005-10-12 12:05:23,355 DEBUG org.hibernate.impl.SessionImpl - opened session at timestamp: 4624929273098240
2005-10-12 12:05:23,355 DEBUG org.hibernate.event.def.DefaultSaveOrUpdateEventListener - saving transient instance
2005-10-12 12:05:23,355 DEBUG org.hibernate.jdbc.ConnectionManager - opening JDBC connection
2005-10-12 12:05:23,355 DEBUG org.springframework.jdbc.datasource.DriverManagerDataSource - Creating new JDBC Connection to [jdbc:mysql://localhost:3306/cdxcore2]
2005-10-12 12:05:23,405 DEBUG org.hibernate.id.IncrementGenerator - fetching initial value: select max(id) from dataflow
2005-10-12 12:05:23,405 DEBUG org.hibernate.SQL - select max(id) from dataflow
2005-10-12 12:05:23,415 DEBUG org.hibernate.id.IncrementGenerator - first free id: 1
2005-10-12 12:05:23,415 DEBUG org.hibernate.event.def.AbstractSaveEventListener - generated identifier: 1, using strategy: org.hibernate.id.IncrementGenerator
2005-10-12 12:05:23,415 DEBUG org.hibernate.event.def.AbstractSaveEventListener - saving [gov.epa.cdx.model.dataflow.Dataflow#1]
2005-10-12 12:05:23,425 DEBUG org.hibernate.engine.Cascades - processing cascade ACTION_SAVE_UPDATE for: gov.epa.cdx.model.dataflow.Dataflow
2005-10-12 12:05:23,425 DEBUG org.hibernate.engine.Cascades - done processing cascade ACTION_SAVE_UPDATE for: gov.epa.cdx.model.dataflow.Dataflow
2005-10-12 12:05:23,445 DEBUG org.hibernate.event.def.WrapVisitor - Wrapped collection in role: gov.epa.cdx.model.dataflow.Dataflow.parameters
2005-10-12 12:05:23,455 DEBUG org.hibernate.engine.Cascades - processing cascade ACTION_SAVE_UPDATE for: gov.epa.cdx.model.dataflow.Dataflow
2005-10-12 12:05:23,455 DEBUG org.hibernate.engine.Cascades - cascade ACTION_SAVE_UPDATE for collection: gov.epa.cdx.model.dataflow.Dataflow.parameters
2005-10-12 12:05:23,455 DEBUG org.hibernate.engine.Cascades - cascading to saveOrUpdate: null
2005-10-12 12:05:23,455 DEBUG org.hibernate.engine.Cascades - id unsaved-value: 0
2005-10-12 12:05:23,455 DEBUG org.hibernate.event.def.AbstractSaveEventListener - transient instance of: gov.epa.cdx.model.common.Parameter
2005-10-12 12:05:23,455 DEBUG org.hibernate.event.def.DefaultSaveOrUpdateEventListener - saving transient instance
2005-10-12 12:05:23,455 DEBUG org.hibernate.id.IncrementGenerator - fetching initial value: select max(id) from parameter
2005-10-12 12:05:23,455 DEBUG org.hibernate.SQL - select max(id) from parameter
2005-10-12 12:05:23,455 DEBUG org.hibernate.id.IncrementGenerator - first free id: 1
2005-10-12 12:05:23,455 DEBUG org.hibernate.event.def.AbstractSaveEventListener - generated identifier: 1, using strategy: org.hibernate.id.IncrementGenerator
2005-10-12 12:05:23,455 DEBUG org.hibernate.event.def.AbstractSaveEventListener - saving [gov.epa.cdx.model.common.Parameter#1]
2005-10-12 12:05:23,455 DEBUG org.hibernate.engine.Cascades - id unsaved-value strategy UNDEFINED
2005-10-12 12:05:23,455 DEBUG org.hibernate.persister.entity.BasicEntityPersister - Getting current persistent state for: [gov.epa.cdx.model.common.ParameterType#DATAFLOW]
2005-10-12 12:05:23,455 DEBUG org.hibernate.jdbc.AbstractBatcher - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
2005-10-12 12:05:23,455 DEBUG org.hibernate.SQL - select parametert_.id from parameter_type parametert_ where parametert_.id=?
2005-10-12 12:05:23,455 DEBUG org.hibernate.jdbc.AbstractBatcher - preparing statement
2005-10-12 12:05:23,465 DEBUG org.hibernate.type.StringType - binding 'DATAFLOW' to parameter: 1
2005-10-12 12:05:23,465 DEBUG org.hibernate.jdbc.AbstractBatcher - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
2005-10-12 12:05:23,465 DEBUG org.hibernate.jdbc.AbstractBatcher - closing statement
2005-10-12 12:05:23,465 DEBUG org.hibernate.engine.Cascades - done cascade ACTION_SAVE_UPDATE for collection: gov.epa.cdx.model.dataflow.Dataflow.parameters
2005-10-12 12:05:23,465 DEBUG org.hibernate.engine.Cascades - done processing cascade ACTION_SAVE_UPDATE for: gov.epa.cdx.model.dataflow.Dataflow
2005-10-12 12:05:23,465 DEBUG org.springframework.orm.hibernate3.HibernateTemplate - Eagerly flushing Hibernate session
2005-10-12 12:05:23,465 DEBUG org.hibernate.event.def.AbstractFlushingEventListener - flushing session
2005-10-12 12:05:23,465 DEBUG org.hibernate.event.def.AbstractFlushingEventListener - processing flush-time cascades
2005-10-12 12:05:23,465 DEBUG org.hibernate.engine.Cascades - processing cascade ACTION_SAVE_UPDATE for: gov.epa.cdx.model.dataflow.Dataflow
2005-10-12 12:05:23,465 DEBUG org.hibernate.engine.Cascades - cascade ACTION_SAVE_UPDATE for collection: gov.epa.cdx.model.dataflow.Dataflow.parameters
2005-10-12 12:05:23,465 DEBUG org.hibernate.engine.Cascades - cascading to saveOrUpdate: null
2005-10-12 12:05:23,475 DEBUG org.hibernate.event.def.AbstractSaveEventListener - persistent instance of: gov.epa.cdx.model.common.Parameter
2005-10-12 12:05:23,475 DEBUG org.hibernate.event.def.DefaultSaveOrUpdateEventListener - ignoring persistent instance
2005-10-12 12:05:23,475 DEBUG org.hibernate.event.def.DefaultSaveOrUpdateEventListener - object already associated with session: [gov.epa.cdx.model.common.Parameter#1]
2005-10-12 12:05:23,475 DEBUG org.hibernate.engine.Cascades - done cascade ACTION_SAVE_UPDATE for collection: gov.epa.cdx.model.dataflow.Dataflow.parameters
2005-10-12 12:05:23,475 DEBUG org.hibernate.engine.Cascades - done processing cascade ACTION_SAVE_UPDATE for: gov.epa.cdx.model.dataflow.Dataflow
2005-10-12 12:05:23,475 DEBUG org.hibernate.event.def.AbstractFlushingEventListener - dirty checking collections
2005-10-12 12:05:23,475 DEBUG org.hibernate.event.def.AbstractFlushingEventListener - Flushing entities and processing referenced collections
2005-10-12 12:05:23,475 DEBUG org.hibernate.engine.Collections - Collection found: [gov.epa.cdx.model.dataflow.Dataflow.parameters#1], was: [<unreferenced>] (initialized)
2005-10-12 12:05:23,475 DEBUG org.hibernate.event.def.AbstractFlushingEventListener - Processing unreferenced collections
2005-10-12 12:05:23,475 DEBUG org.hibernate.event.def.AbstractFlushingEventListener - Scheduling collection removes/(re)creates/updates
2005-10-12 12:05:23,475 DEBUG org.hibernate.event.def.AbstractFlushingEventListener - Flushed: 2 insertions, 0 updates, 0 deletions to 2 objects
2005-10-12 12:05:23,475 DEBUG org.hibernate.event.def.AbstractFlushingEventListener - Flushed: 1 (re)creations, 0 updates, 0 removals to 1 collections
2005-10-12 12:05:23,485 DEBUG org.hibernate.pretty.Printer - listing entities:
2005-10-12 12:05:23,485 DEBUG org.hibernate.pretty.Printer - gov.epa.cdx.model.common.Parameter{value=test-dataflow-parameter-value, type=gov.epa.cdx.model.common.ParameterType#DATAFLOW, owner=null, physicalType=test-dataflow-parameter-type, name=test-dataflow-parameter-name, id=1}
2005-10-12 12:05:23,485 DEBUG org.hibernate.pretty.Printer - gov.epa.cdx.model.dataflow.Dataflow{parameters=[gov.epa.cdx.model.common.Parameter#1], name=test-activity-dataflow, services=null, id=1}
2005-10-12 12:05:23,485 DEBUG org.hibernate.event.def.AbstractFlushingEventListener - executing flush
2005-10-12 12:05:23,485 DEBUG org.hibernate.persister.entity.BasicEntityPersister - Inserting entity: [gov.epa.cdx.model.dataflow.Dataflow#1]
2005-10-12 12:05:23,485 DEBUG org.hibernate.jdbc.AbstractBatcher - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
2005-10-12 12:05:23,485 DEBUG org.hibernate.SQL - insert into dataflow (name, id) values (?, ?)
2005-10-12 12:05:23,485 DEBUG org.hibernate.jdbc.AbstractBatcher - preparing statement
2005-10-12 12:05:23,485 DEBUG org.hibernate.persister.entity.BasicEntityPersister - Dehydrating entity:


Top
 Profile  
 
 Post subject: Solution
PostPosted: Thu Oct 13, 2005 3:40 pm 
Newbie

Joined: Tue Oct 11, 2005 10:45 am
Posts: 6
I was able to fix the problem by using the table-per-concrete-class pattern by introducing an inheritance relationship

Code:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
   "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
   <class name="C" table="table_for_c">
      <id name="id" column="id" type="long">
         <generator class="increment"/>
      </id>
      <many-to-one name="owner" class="P" column="parent_id" lazy="false" insert="false" update="false"/>
      <property name="name" column="name" type="string"/>
      <property name="value" column="value" type="string"/>
   </class>
   <class name="P" abstract="true">
      <id name="id" column="id" type="string"/>
      <map name="parameters" table="table_for_c" lazy="false" cascade="all">
         <key column="parent_id" not-null="true"/>
         <map-key formula="name" type="string"/>
         <one-to-many class="C"/>
      </map>
      <union-subclass name="A" table="table_for_a">
         <property name="name" column="name" type="string"/>
         ...
     </union-subclass>
     <union-subclass name="B" table="table_for_b">
         <property name="name" column="name" type="string"/>
         ...
     </union-subclass>
</hibernate-mapping>


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.