Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [Teneo] DuplicateMappingException
[Teneo] DuplicateMappingException [message #427494] Thu, 19 February 2009 15:56 Go to next message
Stephane  fournier is currently offline Stephane fournierFriend
Messages: 340
Registered: July 2009
Senior Member
Hi,

I got a DuplicateMapping exception because among my registered EPackages,
I have 2 meta-classes with the same "unqualified" name.

What is the best solution to handle that problem ? I can't rename the
related meta-classes...

Does an option exist to customize entity name creation in Teneo /
Hibernate ?

Stephane.
Re: [Teneo] DuplicateMappingException [message #427518 is a reply to message #427494] Thu, 19 February 2009 19:38 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Stéphane,
The easiest option is to set an entity annotation on one of the two meta-classes giving it a different name than the
other, something like:
@Entity(name="MyNewUniqueName")

gr. Martin

Stéphane Fournier wrote:
> Hi,
>
> I got a DuplicateMapping exception because among my registered
> EPackages, I have 2 meta-classes with the same "unqualified" name.
>
> What is the best solution to handle that problem ? I can't rename the
> related meta-classes...
> Does an option exist to customize entity name creation in Teneo /
> Hibernate ?
>
> Stephane.
>


--

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@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Previous Topic:generated editor plugin does not run (without reported errors)
Next Topic:Model Question.
Goto Forum:
  


Current Time: Fri Sep 20 20:27:35 GMT 2024

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

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

Back to the top