Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Teneo: Hibernate and Arrays as EDataType
Teneo: Hibernate and Arrays as EDataType [message #591418] Wed, 20 September 2006 09:40
Hans Mueller-Dieckert is currently offline Hans Mueller-DieckertFriend
Messages: 32
Registered: July 2009
Member
Hi,

we have an EMF-model in which we have defined an Integer-Array as EDataType:

<eClassifiers xsi:type="ecore:EDataType" name="IntegerArray"
instanceClassName="int[]"/>

So far everything worked just fine using only the EMF-Framework an
storing everything into XML-Files.

But trying to use the EMF - Hibernate integration results in the
following Exception:

org.hibernate.MappingException: Could not determine type for: int[], for
columns: [org.hibernate.mapping.Column(elt)]
at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:2 66)
at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:2 53)
at org.hibernate.mapping.Collection.validate(Collection.java:26 2)
at org.hibernate.cfg.Configuration.validate(Configuration.java: 988)
at
org.hibernate.cfg.Configuration.buildSessionFactory(Configur ation.java:1169)
at
org.eclipse.emf.teneo.hibernate.HbDataStore.buildSessionFact ory(HbDataStore.java:474)
at
org.eclipse.emf.teneo.hibernate.HbDataStore.initialize(HbDat aStore.java:187)
at


when calling

HbDataStore hbds = HbHelper.INSTANCE.createRegisterDataStore("test");
hbds.setEPackages(new Package[]{MyPackage.eINSTANCE});
hbds.setHibernateProperties(properties);
hbds.initialize(); // <- this throws the Exception

Is this a Bug, are we doing anything wrong, is there a possible workaround ?

greetings,
Hans
Previous Topic:Teneo: Hibernate 3.2rc4 incompatibility
Next Topic:Teneo with JPOX-1.1.2
Goto Forum:
  


Current Time: Thu Apr 25 22:29:45 GMT 2024

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

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

Back to the top