Teneo: Hibernate and Arrays as EDataType [message #591418] |
Wed, 20 September 2006 09:40 |
Hans Mueller-Dieckert 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
|
|
|
Powered by
FUDForum. Page generated in 0.02658 seconds