Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Does Teneo deal with interfaces correctly?
Does Teneo deal with interfaces correctly? [message #596288] Wed, 29 November 2006 08:28
Ilya Klyuchnikov is currently offline Ilya KlyuchnikovFriend
Messages: 74
Registered: July 2009
Hi Martin!

I have updated my model and now have problem during hibernate mapping

I have class IAdaptable in my model which is mapped to
org.eclipse.core.IAdaptable interface:

<eClassifiers xsi:type="ecore:EClass" name="IAdaptable"

Also I have class that implements this Interface:
<eClassifiers xsi:type="ecore:EClass" name="Placement"

So in generated code I have:

import java.util.Date;

import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EObject;

public interface Placement extends EObject, IAdaptable ...

BUT when I try to create mapping I get:
<class entity-name="IAdaptable" abstract="true" lazy="false"
discriminator-value="IAdaptable" table="`iadaptable`">
<meta attribute="eclassName">IAdaptable</meta>
<meta attribute="epackage"></meta>
<id type="long" name="e_id" column="e_id"
access=" org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rPropertyHandler ">
<meta attribute="syntheticId">true</meta>
<generator class="native"/>
<discriminator column="`dtype`" type="string"/>
<version name="e_version" column="e_version"
access=" ertyHandler ">
<meta attribute="syntheticVersion">true</meta>
<subclass entity-name="Placement" abstract="false" lazy="false"
extends="IAdaptable" discriminator-value="Placement">

It's wrong for me - I need to have:
<class entity-name="Placement" abstract="false" lazy="false"
discriminator-value="Placement" table="`placement`">

Also it's wrong cause IAdaptable is just interface - not an abstract class.

Is it a bug in Teneo or I need to customize behavior via jpa or hibernate
annotations in my model?

Thanks in advance.
Previous Topic:teneo - two different hibernate databases in one ResourceSet
Next Topic:Does Teneo deal with interfaces correctly?
Goto Forum:

Current Time: Sat Feb 27 21:59:37 GMT 2021

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

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

Back to the top