Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [Teneo] Table name conflict with imported package
[Teneo] Table name conflict with imported package [message #1017733] Tue, 12 March 2013 09:04 Go to next message
Athanasios Papakostopoulos is currently offline Athanasios Papakostopoulos
Messages: 3
Registered: March 2013
Junior Member
Hi,

I am new to Teneo.

I have two packages .../rim.ecore and .../cda.ecore. The cda.ecore imports the rim.ecore.

I have a class rim::Act and a class cda::Act. How can I solve the conflict in the table name Act?
Can I add package specific prefix?For example all classes from rim.ecore will be named rim_class_name and all cda related cda_class_name?

The teneo.naming.sql_table_name_prefix is not helping me in this case.

Thnx
Re: [Teneo] Table name conflict with imported package [message #1017757 is a reply to message #1017733] Tue, 12 March 2013 09:39 Go to previous messageGo to next message
Martin Taal is currently offline Martin Taal
Messages: 5329
Registered: July 2009
Senior Member
Hi Athanasios,
For 1 or 2 of these cases you can set an @Entity annotation on the eclass:
http://wiki.eclipse.org/Teneo/Hibernate#Model_Relational_Mapping_with_EJB3.2FJPA_Annotations

Or to solve it globally you can use another naming strategy:
http://wiki.eclipse.org/Teneo/Hibernate/Extensions#EntityNameStrategy_ExtensionPoint_.28org.eclipse.emf.teneo.mapping.strategy.EntityNameStrategy.29

see the QualifyingEntityNameStrategy

gr. Martin

On 03/12/2013 02:19 PM, Athanasios Papakostopoulos wrote:
> Hi,
>
> I am new to Teneo.
>
> I have two packages .../rim.ecore and .../cda.ecore. The cda.ecore imports the rim.ecore.
>
> I have a class rim::Act and a class cda::Act. How can I solve the conflict in the table name Act?
> Can I add package specific prefix?For example all classes from rim.ecore will be named rim_class_name and all cda
> related cda_class_name?
>
> The teneo.naming.sql_table_name_prefix is not helping me in this case.
>
> Thnx


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org
Re: [Teneo] Table name conflict with imported package [message #1020540 is a reply to message #1017757] Mon, 18 March 2013 08:16 Go to previous message
Athanasios Papakostopoulos is currently offline Athanasios Papakostopoulos
Messages: 3
Registered: March 2013
Junior Member
Thank you
Previous Topic:EMF Databinding with double values
Next Topic:How to control default javadoc creation..
Goto Forum:
  


Current Time: Sat Aug 30 22:25:38 EDT 2014

Powered by FUDForum. Page generated in 0.01602 seconds