Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Issue with JPA Annotations
Issue with JPA Annotations [message #606934] Wed, 13 June 2007 15:29
No real name is currently offline No real nameFriend
Messages: 36
Registered: July 2009
Member
I am trying to capture JPA annotations in EMF editor (Soyatec) , generate
a code and then use Teneo to generate HBM file. It seems annotations are
not reflected in HBM file.

ecore annotation looks like :

<eClassifiers xsi:type="ecore:EClass" name="EQUser"
eSuperTypes="#//EQGlobalDomainObject">
<eAnnotations source="teneo.jpa">
<details key="appinfo" value="@Entity(name=t_eq_user)"/>
<details key="value" value="@Table(name=t_eq_user)"/>
</eAnnotations>

generated code has following comments :

@model annotation="teneo.jpa appinfo='@Entity(name=t_eq_user)'
value='@Table(name=t_eq_user)'"
@generated

But hibernate file doesnt have new table name :

<joined-subclass name="com.company.eqfc.model.orgdata.impl.EQUserImpl"
entity-name="EQUser" abstract="false" lazy="false"
extends="EQGlobalDomainObject" table="`equser`">

Can you pls help ?

Also how can we add multiple annotations through EMF editor ? it doesnt
allow multiple properties with 'appinfo' name ?
Previous Topic:[Teneo - JPOX] Enhanced classes
Next Topic:[teneo] primary key in java code
Goto Forum:
  


Current Time: Thu Apr 25 05:57:06 GMT 2024

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

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

Back to the top