Hibernate version:
2.1.7
Mapping documents:
<hibernate-mapping package="com.nexusatwork.dbs.server.persistence">
<class name="PersistentRuleOfProfile" table="RULEOFPROFILE_T">
<composite-id class="RuleOfProfilePK" name="id">
<key-many-to-one class=".PersistentRuleProfile" column="RULEPROFILEID" name="ruleProfile" />
<key-many-to-one class="PersistentRule" column="RULEID" name="rule" />
<key-property column="VALIDFROM" name="validFrom" type="string" />
</composite-id>
...
</class>
</hibernate-mapping>
<hibernate-mapping package="com.nexusatwork.dbs.server.persistence">
<class name="PersistentRule" table="RULE_T">
<id column="RULEID" name="id" type="java.lang.Long">
<generator class="vm" />
</id>
...
</class>
</hibernate-mapping>
<hibernate-mapping package="com.nexusatwork.dbs.server.persistence">
<class name="PersistentRuleParameterValue" table="RULEPARAMETERVALUE_T">
<composite-id class="RuleParameterValuePK" name="id">
<key-many-to-one class="PersistentRuleOfProfile" name="ruleOfProfile">
<column name="RULEPROFILEID" />
<column name="RULEID" />
<column name="VALIDFROM" />
</key-many-to-one>
<key-many-to-one class="PersistentRuleParameterDescription" name="ruleParameterDescription">
<column name="RULEID" />
<column name="PARAMETERNAME" />
</key-many-to-one>
</composite-id>
...
</class>
</hibernate-mapping>
<hibernate-mapping package="com.nexusatwork.dbs.server.persistence">
<class name="PersistentRuleParameterDescription" table="RULEPARAMETERDESCRIPTION_T">
<composite-id class="RuleParameterDescriptionPK" name="id">
<key-many-to-one class="PersistentRule" column="RULEID" name="rule" />
<key-property column="PARAMETERNAME" name="name" type="string" />
</composite-id>
...
</class>
</hibernate-mapping>
Full stack trace of any exception that occurs:
net.sf.hibernate.MappingException: Repeated column in mapping for class com.nexusatwork.dbs.server.persistence.PersistentRuleParameterValue should be mapped with insert="false" update="false": RULEID
at net.sf.hibernate.persister.AbstractEntityPersister.checkColumnDuplication(AbstractEntityPersister.java:1016)
at net.sf.hibernate.persister.EntityPersister.<init>(EntityPersister.java:754)
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 com.nexusatwork.dbs.server.persistence.HibernateHelper.<clinit>(HibernateHelper.java:42)
Name and version of the database you are using:
Oracle 9.2.0.5.0
Debug level Hibernate log excerpt:
INFO, Using dialect: net.sf.hibernate.dialect.Oracle9Dialect
FINEST, Using dialect defined converter
INFO, Use outer join fetching: true
INFO, Using Hibernate built-in connection pool (not for production use!)
INFO, Hibernate connection pool size: 20
INFO, Transaction strategy: net.sf.hibernate.transaction.JDBCTransactionFactory
INFO, No TransactionManagerLookup configured (in JTA environment, use of process level read-write cache is not recommended), net.sf.hibernate.transaction.TransactionManagerLookupFactory, getTransactionManagerLookup, INFO, No TransactionManagerLookup configured (in JTA environment, use of process level read-write cache is not recommended)
FINEST, total checked-out connections: 0
FINE, opening new JDBC connection
FINE, created connection to:
FINEST, returning connection to pool, pool size: 1
INFO, Use scrollable result sets: true
INFO, Use JDBC3 getGeneratedKeys(): false
INFO, Optimize cache for minimal puts: false
INFO, Query language substitutions: {}
INFO, cache provider: net.sf.hibernate.cache.EhCacheProvider
INFO, instantiating and configuring caches
INFO, building session factory, net.sf.hibernate.impl.SessionFactoryImpl
FINE, instantiating session factory with properties: {hibernate.connection.password=oracle98, java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition, sun.boot.library.path=C:\java\j2sdk1.4.2_06\jre\bin, java.vm.version=1.4.2_06-b03, hibernate.connection.username=BSUSER, org.quartz.properties=c:/eclipse/workspace/dbs/resource/quartz.properties, 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, java.util.logging.config.file=c:/eclipse/workspace/dbs/resource/logging.properties, user.country=CH, sun.os.patch.level=Service Pack 4, java.vm.specification.name=Java Virtual Machine Specification, user.dir=C:\eclipse\workspace\dbs, java.runtime.version=1.4.2_06-b03, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, java.endorsed.dirs=C:\java\j2sdk1.4.2_06\jre\lib\endorsed, os.arch=x86, java.io.tmpdir=C:\DOCUME~1\zehnder\LOCALS~1\Temp\, line.separator=
, java.vm.specification.vendor=Sun Microsystems Inc., user.variant=, os.name=Windows 2000, sun.java2d.fontpath=, java.security.manager=, java.library.path=C:\java\j2sdk1.4.2_06\bin;.;C:\WINNT\system32;C:\WINNT;C:\java\j2sdk1.4.2_04\jre\bin;C:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Hummingbird\Connectivity\7.10\Accessories\;C:\Program Files\Executive Software\DiskeeperWorkstation\;C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program Files\UltraEdit;C:\java\apache-ant-1.6.1\bin;C:\Program Files\JProbe Profiler 5.2.1\bin;c:\java\cvs;C:\Program Files\apache-ant-1.6.2, java.specification.name=Java Platform API Specification, java.class.version=48.0, hibernate.transaction.factory_class=net.sf.hibernate.transaction.JDBCTransactionFactory, java.util.prefs.PreferencesFactory=java.util.prefs.WindowsPreferencesFactory, os.version=5.0, user.home=C:\Documents and Settings\zehnder, user.timezone=Europe/Berlin, java.security.policy==c:/eclipse/workspace/dbs/resource/policy.txt, java.awt.printerjob=sun.awt.windows.WPrinterJob, file.encoding=Cp1252, java.specification.version=1.4, hibernate.connection.driver_class=oracle.jdbc.OracleDriver, java.class.path=C:\eclipse\workspace\dbs\bin;C:\eclipse\workspace\dbs\lib\client\jdom.jar;C:\eclipse\workspace\dbs\lib\client\jide-common.jar;C:\eclipse\workspace\dbs\lib\client\jide-components.jar;C:\eclipse\workspace\dbs\lib\client\jide-dialogs.jar;C:\eclipse\workspace\dbs\lib\client\jide-dock.jar;C:\eclipse\workspace\dbs\lib\client\jide-grids.jar;C:\eclipse\workspace\dbs\lib\client\nexus_common.jar;C:\eclipse\workspace\dbs\lib\server\commons-lang-1.0.1.jar;C:\eclipse\workspace\dbs\lib\server\commons-logging.jar;C:\eclipse\workspace\dbs\lib\server\dom4j-1.4.jar;C:\eclipse\workspace\dbs\lib\server\hibernate2.jar;C:\eclipse\workspace\dbs\lib\server\jta.jar;C:\eclipse\workspace\dbs\lib\server\junit-3.8.1.jar;C:\eclipse\workspace\dbs\lib\server\odmg-3.0.jar;C:\eclipse\workspace\dbs\lib\server\ojdbc14.jar;C:\eclipse\workspace\dbs\lib\server\quartz.jar;C:\eclipse\workspace\dbs\lib\server\xercesImpl.jar;C:\eclipse\workspace\dbs\lib\server\xml-apis.jar;C:\eclipse\workspace\dbs\lib\server\commons-net-1.2.2.jar;C:\eclipse\workspace\dbs\lib\server\jakarta-oro-2.0.8.jar;C:\eclipse\workspace\dbs\lib\server\commons-collections-2.1.1.jar;C:\eclipse\workspace\dbs\lib\server\commons-dbcp-1.2.1.jar;C:\eclipse\workspace\dbs\lib\server\commons-logging-1.0.4.jar;C:\eclipse\workspace\dbs\lib\server\commons-pool-1.2.jar;C:\eclipse\workspace\dbs\lib\server\ehcache-0.9.jar;C:\eclipse\workspace\dbs\lib\server\cglib-full-2.0.2.jar;C:\eclipse\workspace\dbs\resource, user.name=zehnder, hibernate.show_sql=false, java.vm.specification.version=1.0, java.home=C:\java\j2sdk1.4.2_06\jre, sun.arch.data.model=32, hibernate.dialect=net.sf.hibernate.dialect.Oracle9Dialect, hibernate.connection.url=jdbc:oracle:thin:@//mango:1521/vptt1sz, preferences.file=c:/eclipse/workspace/dbs/resource/preferences.xml, user.language=de, java.specification.vendor=Sun Microsystems Inc., awt.toolkit=sun.awt.windows.WToolkit, hibernate.cglib.use_reflection_optimizer=true, java.vm.info=mixed mode, java.version=1.4.2_06, java.ext.dirs=C:\java\j2sdk1.4.2_06\jre\lib\ext, sun.boot.class.path=C:\java\j2sdk1.4.2_06\jre\lib\rt.jar;C:\java\j2sdk1.4.2_06\jre\lib\i18n.jar;C:\java\j2sdk1.4.2_06\jre\lib\sunrsasign.jar;C:\java\j2sdk1.4.2_06\jre\lib\jsse.jar;C:\java\j2sdk1.4.2_06\jre\lib\jce.jar;C:\java\j2sdk1.4.2_06\jre\lib\charsets.jar;C:\java\j2sdk1.4.2_06\jre\classes, java.vendor=Sun Microsystems Inc., java.security.auth.login.config==c:/eclipse/workspace/dbs/resource/jaas.conf, file.separator=\, java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi, sun.io.unicode.encoding=UnicodeLittle, sun.cpu.endian=little, java.rmi.server.hostname=nexus-hmb-79, java.rmi.server.codebase=file:/c:/eclipse/workspace/dbs/build/jars/dbs_common.jar, sun.cpu.isalist=pentium i486 i386}, net.sf.hibernate.impl.SessionFactoryImpl, <init>, FINE, instantiating session factory with properties: {hibernate.connection.password=oracle98, java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition, sun.boot.library.path=C:\java\j2sdk1.4.2_06\jre\bin, java.vm.version=1.4.2_06-b03, hibernate.connection.username=BSUSER, org.quartz.properties=c:/eclipse/workspace/dbs/resource/quartz.properties, 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, java.util.logging.config.file=c:/eclipse/workspace/dbs/resource/logging.properties, user.country=CH, sun.os.patch.level=Service Pack 4, java.vm.specification.name=Java Virtual Machine Specification, user.dir=C:\eclipse\workspace\dbs, java.runtime.version=1.4.2_06-b03, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, java.endorsed.dirs=C:\java\j2sdk1.4.2_06\jre\lib\endorsed, os.arch=x86, java.io.tmpdir=C:\DOCUME~1\zehnder\LOCALS~1\Temp\, line.separator=
, java.vm.specification.vendor=Sun Microsystems Inc., user.variant=, os.name=Windows 2000, sun.java2d.fontpath=, java.security.manager=, java.library.path=C:\java\j2sdk1.4.2_06\bin;.;C:\WINNT\system32;C:\WINNT;C:\java\j2sdk1.4.2_04\jre\bin;C:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Hummingbird\Connectivity\7.10\Accessories\;C:\Program Files\Executive Software\DiskeeperWorkstation\;C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program Files\UltraEdit;C:\java\apache-ant-1.6.1\bin;C:\Program Files\JProbe Profiler 5.2.1\bin;c:\java\cvs;C:\Program Files\apache-ant-1.6.2, java.specification.name=Java Platform API Specification, java.class.version=48.0, hibernate.transaction.factory_class=net.sf.hibernate.transaction.JDBCTransactionFactory, java.util.prefs.PreferencesFactory=java.util.prefs.WindowsPreferencesFactory, os.version=5.0, user.home=C:\Documents and Settings\zehnder, user.timezone=Europe/Berlin, java.security.policy==c:/eclipse/workspace/dbs/resource/policy.txt, java.awt.printerjob=sun.awt.windows.WPrinterJob, file.encoding=Cp1252, java.specification.version=1.4, hibernate.connection.driver_class=oracle.jdbc.OracleDriver, java.class.path=C:\eclipse\workspace\dbs\bin;C:\eclipse\workspace\dbs\lib\client\jdom.jar;C:\eclipse\workspace\dbs\lib\client\jide-common.jar;C:\eclipse\workspace\dbs\lib\client\jide-components.jar;C:\eclipse\workspace\dbs\lib\client\jide-dialogs.jar;C:\eclipse\workspace\dbs\lib\client\jide-dock.jar;C:\eclipse\workspace\dbs\lib\client\jide-grids.jar;C:\eclipse\workspace\dbs\lib\client\nexus_common.jar;C:\eclipse\workspace\dbs\lib\server\commons-lang-1.0.1.jar;C:\eclipse\workspace\dbs\lib\server\commons-logging.jar;C:\eclipse\workspace\dbs\lib\server\dom4j-1.4.jar;C:\eclipse\workspace\dbs\lib\server\hibernate2.jar;C:\eclipse\workspace\dbs\lib\server\jta.jar;C:\eclipse\workspace\dbs\lib\server\junit-3.8.1.jar;C:\eclipse\workspace\dbs\lib\server\odmg-3.0.jar;C:\eclipse\workspace\dbs\lib\server\ojdbc14.jar;C:\eclipse\workspace\dbs\lib\server\quartz.jar;C:\eclipse\workspace\dbs\lib\server\xercesImpl.jar;C:\eclipse\workspace\dbs\lib\server\xml-apis.jar;C:\eclipse\workspace\dbs\lib\server\commons-net-1.2.2.jar;C:\eclipse\workspace\dbs\lib\server\jakarta-oro-2.0.8.jar;C:\eclipse\workspace\dbs\lib\server\commons-collections-2.1.1.jar;C:\eclipse\workspace\dbs\lib\server\commons-dbcp-1.2.1.jar;C:\eclipse\workspace\dbs\lib\server\commons-logging-1.0.4.jar;C:\eclipse\workspace\dbs\lib\server\commons-pool-1.2.jar;C:\eclipse\workspace\dbs\lib\server\ehcache-0.9.jar;C:\eclipse\workspace\dbs\lib\server\cglib-full-2.0.2.jar;C:\eclipse\workspace\dbs\resource, user.name=zehnder, hibernate.show_sql=false, java.vm.specification.version=1.0, java.home=C:\java\j2sdk1.4.2_06\jre, sun.arch.data.model=32, hibernate.dialect=net.sf.hibernate.dialect.Oracle9Dialect, hibernate.connection.url=jdbc:oracle:thin:@//mango:1521/vptt1sz, preferences.file=c:/eclipse/workspace/dbs/resource/preferences.xml, user.language=de, java.specification.vendor=Sun Microsystems Inc., awt.toolkit=sun.awt.windows.WToolkit, hibernate.cglib.use_reflection_optimizer=true, java.vm.info=mixed mode, java.version=1.4.2_06, java.ext.dirs=C:\java\j2sdk1.4.2_06\jre\lib\ext, sun.boot.class.path=C:\java\j2sdk1.4.2_06\jre\lib\rt.jar;C:\java\j2sdk1.4.2_06\jre\lib\i18n.jar;C:\java\j2sdk1.4.2_06\jre\lib\sunrsasign.jar;C:\java\j2sdk1.4.2_06\jre\lib\jsse.jar;C:\java\j2sdk1.4.2_06\jre\lib\jce.jar;C:\java\j2sdk1.4.2_06\jre\lib\charsets.jar;C:\java\j2sdk1.4.2_06\jre\classes, java.vendor=Sun Microsystems Inc., java.security.auth.login.config==c:/eclipse/workspace/dbs/resource/jaas.conf, file.separator=\, java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi, sun.io.unicode.encoding=UnicodeLittle, sun.cpu.endian=little, java.rmi.server.hostname=nexus-hmb-79, java.rmi.server.codebase=file:/c:/eclipse/workspace/dbs/build/jars/dbs_common.jar, sun.cpu.isalist=pentium i486 i386}
FINEST, Repeated column in mapping for class com.nexusatwork.dbs.server.persistence.PersistentRuleParameterValue should be mapped with insert="false" update="false": RULEID
I can't find where I could mapp the property RULEID with insert="false" and update="false". In each mappingfile it is eigther a primary key or a compositeid and there is not attribute allowed for id and composite-id elements. What is my fault?
|