Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [Teneo] Default Value in DDL Generation([Teneo] Default Value in DDL Generation)
[Teneo] Default Value in DDL Generation [message #1059941] Wed, 22 May 2013 09:09 Go to next message
Minu martin is currently offline Minu martinFriend
Messages: 7
Registered: May 2013
Junior Member
Hi all,

I want to add a not null column to a table generated via Teneo from my ECore model.

Is there any possibility to set a default value for this column during DDL generation of teneo?

Somthing like below

ALTER TABLE [Employees] ADD DEFAULT ("SP") FOR [Department]


I cannot use annotations in entity classes as I am using dynamic entities.

Thanks and Regards,
Minu Martin
Re: [Teneo] Default Value in DDL Generation [message #1060176 is a reply to message #1059941] Thu, 23 May 2013 12:03 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Minu,
I see that hbm indeed supports a sql expression for default but that it is not part of the Teneo supported annotations.
Can you enter a bugzilla for it?

Another approach is to set the default in the ecore efeature, this will be applied when creating new objects.

gr. Martin

On 05/22/2013 02:36 PM, Minu martin wrote:
> Hi all,
>
> I want to add a not null column to a table generated via Teneo from my ECore model.
>
> Is there any possibility to set a default value for this column during DDL generation of teneo?
> Somthing like below
>
> ALTER TABLE [Employees] ADD DEFAULT ("SP") FOR [Department]
>
>
> I cannot use annotations in entity classes as I am using dynamic entities.
>
> Thanks and Regards,
> Minu Martin


--

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] Default Value in DDL Generation [message #1060565 is a reply to message #1060176] Mon, 27 May 2013 05:35 Go to previous message
Minu martin is currently offline Minu martinFriend
Messages: 7
Registered: May 2013
Junior Member
Hi Martin,

Thanks for the reply.
I have created a bugzilla for this - Bug 409104.
Please take a look into this.
I am not using generated ecore objects. So I cannot use the second option you suggested.

Thanks & Regards,
Minu Martin
Previous Topic:[XCore] Compiler overrides code tagged as not generated
Next Topic:[CDO] Understanding proxy state.
Goto Forum:
  


Current Time: Sat Apr 27 01:35:03 GMT 2024

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

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

Back to the top