Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [Teneo] Custom SQL Naming Strategy(Custom SQL Naming strategy is not called for FOREIGN KEY INDEX NAME)
[Teneo] Custom SQL Naming Strategy [message #795169] Fri, 10 February 2012 06:34 Go to next message
R Deepak is currently offline R DeepakFriend
Messages: 20
Registered: July 2011
Junior Member
Hi,

Thanks for Teneo!

I am using 1.2.0.v201107080556 and have a small issue. I have implemented a custom SQL Naming strategy where I remap and shorten table and column names.

I have extended ClassicSQLNameStrategy and overridden all the methods to including the convert method.

This method gets called for all SQL names other than the name for the FOREIGN KEY INDEX NAME.

I have set PersistenceOptions.ADD_INDEX_FOR_FOREIGN_KEY to "true".

If I set it to false, I have no problems. But I need the index.

Is this a bug or am I missing something?

Thanks
Deepak

[Updated on: Fri, 10 February 2012 06:35]

Report message to a moderator

Re: [Teneo] Custom SQL Naming Strategy [message #795296 is a reply to message #795169] Fri, 10 February 2012 09:50 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Deepak,
A missing feature it is! Can you enter a bugzilla for it? I can probably take care of it in a short time (few days).

gr. Martin

On 02/10/2012 07:34 AM, R Deepak wrote:
> Hi,
>
> Thanks for Teneo!
>
> I have a small issue. I have implemented a custom SQL Naming strategy where I remap and shorten table and column names.
>
> I have extended ClassicSQLNameStrategy and overridden all the methods to including the convert method.
> This method gets called for all SQL names other than the name for the FOREIGN KEY INDEX NAME.
>
> I have set PersistenceOptions.ADD_INDEX_FOR_FOREIGN_KEY to "true".
>
> If I set it to false, I have no problems. But I need the index.
>
> Is this a bug or am I missing something?
>
> Thanks
> Deepak


--

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
Re: [Teneo] Custom SQL Naming Strategy [message #795327 is a reply to message #795296] Fri, 10 February 2012 10:31 Go to previous message
R Deepak is currently offline R DeepakFriend
Messages: 20
Registered: July 2011
Junior Member
Hi Martin,

I've filed the bug:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=371195

Previous Topic:Problems with Containment and EStores
Next Topic:[GWT] generated Editor fails to compile and execute
Goto Forum:
  


Current Time: Thu Apr 25 05:42:10 GMT 2024

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

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

Back to the top