[TENEO] Qualify entity name with package / PersistenceOptions.QUALIFY _ENTITY_NAME [message #1569362] |
Sat, 17 January 2015 07:26  |
Eclipse User |
|
|
|
Hi all,
my model has some EClasses which share the same name. To avoid a Duplicate MappingException, the EPackage's nsprefix must be part of the table name (It seems like the default naming strategy is to use only the EClass' name).
(I'm using Teneo 2.1.0-v201501071531.)
I found some hints at wiki.eclipse.org/Teneo/Hibernate/FAQ#org.hibernate.DuplicateMappingException:_Duplicate_class.2Fentitymapping, however, the link "see here" which might have some further information does not work (actually there is only the link text without the link).
With some deeper googling, I found that an earlier version of Teneo had the persistence option "PersistenceOptions.QUALIFY _ENTITY_NAME" which could be set to "PersistenceOptions.QUALIFY_ENTITY_NAME_NSPREFIX". Unfortunately, I could not find this option in the source code of the current version of Teneo.
I would be very thankful, if someone could point me in the right direction.
|
|
|
Re: [TENEO] Qualify entity name with package / PersistenceOptions.QUALIFY _ENTITY_NAME [message #1571136 is a reply to message #1569362] |
Sun, 18 January 2015 07:32   |
Eclipse User |
|
|
|
Hi Michael,
I corrected the wiki page/faq, the correct reference/link is this one:
https://wiki.eclipse.org/Teneo/Hibernate/Extensions#EntityNameStrategy_ExtensionPoint_.28org.eclipse.emf.teneo.mapping.strategy.EntityNameStrategy.29
gr. Martin
On 18-01-15 01:32, Michael Schoeffler wrote:
> Hi all,
>
> my model has some EClasses which share the same name. To avoid a Duplicate MappingException, the EPackage's nsprefix
> must be part of the table name (It seems like the default naming strategy is to use only the EClass' name). (I'm using
> Teneo 2.1.0-v201501071531.)
>
> I found some hints at
> wiki.eclipse.org/Teneo/Hibernate/FAQ#org.hibernate.DuplicateMappingException:_Duplicate_class.2Fentitymapping, however,
> the link "see here" which might have some further information does not work (actually there is only the link text
> without the link).
>
> With some deeper googling, I found that an earlier version of Teneo had the persistence option
> "PersistenceOptions.QUALIFY _ENTITY_NAME" which could be set to "PersistenceOptions.QUALIFY_ENTITY_NAME_NSPREFIX".
> Unfortunately, I could not find this option in the source code of the current version of Teneo.
>
> I would be very thankful, if someone could point me in the right direction.
--
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.03481 seconds