Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [TEXO] Unique constraints
[TEXO] Unique constraints [message #762640] Thu, 08 December 2011 12:36 Go to next message
Peter Kullmann is currently offline Peter KullmannFriend
Messages: 240
Registered: July 2009
Senior Member
My model has an attribute with the unique=true setting. For this I would like to add a unique constraint in the database. I can do it with an orm annotation. Would it be possible that texo generates the unique constraint automatically or am I missing something here?

Thanks & best regards
Peter
Re: [TEXO] Unique constraints [message #762701 is a reply to message #762640] Thu, 08 December 2011 14:22 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Peter,
Yes makes sense, can you enter a bugzilla request for this?

For now you can add the uniqueconstraint as a JPA annotation in the source code (change the javadoc @generated tag to
@generatedNOT or so). I think most ORM solutions will combine JPA annotations and the orm.xml.

gr. Martin

On 12/08/2011 01:37 PM, Peter Kullmann wrote:
> My model has an attribute with the unique=true setting. For this I would like to add a unique constraint in the
> database. I can do it with an orm annotation. Would it be possible that texo generates the unique constraint
> automatically or am I missing something here?
>
> Thanks & best regards
> Peter
>


--

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: [TEXO] Unique constraints [message #764625 is a reply to message #762701] Mon, 12 December 2011 14:54 Go to previous message
Peter Kullmann is currently offline Peter KullmannFriend
Messages: 240
Registered: July 2009
Senior Member
https://bugs.eclipse.org/bugs/show_bug.cgi?id=366416
Previous Topic:[Henshin] Invoke Henshin programmatically
Next Topic:Working with emf compare from code?
Goto Forum:
  


Current Time: Fri Apr 26 20:00:27 GMT 2024

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

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

Back to the top