[Teneo] Exception and Persistence mapping [message #606891] |
Fri, 08 June 2007 14:22 |
Roman Bliznets Messages: 75 Registered: July 2009 |
Member |
|
|
Exception occur:
org.hibernate.MappingException: Repeated column in mapping for entity:
DTSMethod236Type column: supplementaryquantityt_id (should be mapped with
insert="false" update="false")
at
org.hibernate.mapping.PersistentClass.checkColumnDuplication (PersistentClass.java:652)
at
org.hibernate.mapping.PersistentClass.checkPropertyColumnDup lication(PersistentClass.java:674)
at
org.hibernate.mapping.PersistentClass.checkColumnDuplication (PersistentClass.java:696)
at org.hibernate.mapping.PersistentClass.validate(PersistentCla ss.java:450)
at org.hibernate.mapping.RootClass.validate(RootClass.java:192)
at org.hibernate.cfg.Configuration.validate(Configuration.java: 1102)
at
org.hibernate.cfg.Configuration.buildSessionFactory(Configur ation.java:1287)
at
org.eclipse.emf.teneo.hibernate.HbSessionDataStore.buildSess ionFactory(HbSessionDataStore.java:156)
at
org.eclipse.emf.teneo.hibernate.HbSessionDataStore.initializ e(HbSessionDataStore.java:79)
at
ru.spb.nicetu.SessionFactoryBean.getSessionFactory(SessionFa ctoryBean.java:71)
at ru.spb.nicetu.ReadXML.main(ReadXML.java:33)
I should write in persistence.xml something like this?:
<epackage
namespace-uri="urn:customs.ru:Information:CustomsDocuments:DTSout:3.0.1 ">
<eclass name="DTSMethod236Type">
<property name="....">
<column name="supplementaryquantityt_id" insertable="false"
updatable="false"/>
</property>
</eclass>
</epackage>
I don't understand how to get the name of the property
Maybe I have to do something else?
|
|
|
Powered by
FUDForum. Page generated in 0.02318 seconds