Issue with JPA Annotations [message #606934] |
Wed, 13 June 2007 15:29 |
No real name 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 ?
|
|
|
Powered by
FUDForum. Page generated in 0.02763 seconds