Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [Teneo]how to avoid backticks in column and table names
[Teneo]how to avoid backticks in column and table names [message #428351] Tue, 17 March 2009 17:35 Go to next message
Rachna Bakhru is currently offline Rachna BakhruFriend
Messages: 45
Registered: July 2009
Member
One of my non mutable classes reads from an existing table.
I can't change the name of that table.
Is there an annotation which can tell Teneo not to add backticks "`" for a
particular column name or table name.

Thanks
RJ
Re: [Teneo]how to avoid backticks in column and table names [message #428352 is a reply to message #428351] Tue, 17 March 2009 17:49 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Not for a particular table but there is an option to set the backtick character for all sql names:
PersistenceOptions.SQL_NAME_ESCAPE_CHARACTER
you can set it to "" (empty string)

gr. Martin

RJDAG wrote:
> One of my non mutable classes reads from an existing table.
> I can't change the name of that table.
> Is there an annotation which can tell Teneo not to add backticks "`" for a
> particular column name or table name.
>
> Thanks
> RJ
>
>
>


--

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]how to avoid backticks in column and table names [message #428397 is a reply to message #428352] Thu, 19 March 2009 16:59 Go to previous message
Rachna Bakhru is currently offline Rachna BakhruFriend
Messages: 45
Registered: July 2009
Member
Thanks Martin.

"Martin Taal" <mtaal@elver.org> wrote in message
news:gponr1$2od$1@build.eclipse.org...
> Not for a particular table but there is an option to set the backtick
> character for all sql names:
> PersistenceOptions.SQL_NAME_ESCAPE_CHARACTER
> you can set it to "" (empty string)
>
> gr. Martin
>
> RJDAG wrote:
>> One of my non mutable classes reads from an existing table.
>> I can't change the name of that table.
>> Is there an annotation which can tell Teneo not to add backticks "`" for
>> a particular column name or table name.
>>
>> Thanks
>> RJ
>>
>>
>>
>
>
> --
>
> 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:Way to verify that a generated EPackage matches the ecore
Next Topic:Reading serialized model generated from multiple schemas throws FeatureNotFoundException
Goto Forum:
  


Current Time: Thu Apr 25 22:52:40 GMT 2024

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

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

Back to the top