Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Teneo] Exception and Persistence mapping
[Teneo] Exception and Persistence mapping [message #606891] Fri, 08 June 2007 14:22
Roman Bliznets is currently offline Roman BliznetsFriend
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?
Previous Topic:OutOfMemoryError in HbDataStore.initialize()
Next Topic:[teneo] XML(Gregorian)Calendar or GregorianCalendar
Goto Forum:
  


Current Time: Thu Jan 21 06:20:35 GMT 2021

Powered by FUDForum. Page generated in 0.01885 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top