Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Why is the unique attribute of EAttribute ignored?
Why is the unique attribute of EAttribute ignored? [message #71871] Thu, 15 February 2007 18:42 Go to next message
Michael Kanaley is currently offline Michael KanaleyFriend
Messages: 89
Registered: July 2009
Member
The bug below doesn't describe why this was done.
156934: Disable use of unique attribute of eattribute to set unique
constraint

I didn't see any options that would turn this back on.
This is easy to remedy using annotations but I would like to know the reason
why so I can inform other people in my organization why they have to do
this.
Thanks,
-mike
Re: Why is the unique attribute of EAttribute ignored? [message #71928 is a reply to message #71871] Fri, 16 February 2007 04:21 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
The unique attribute only has a meaning for EMF if the feature is a many feature. In that case it is
used by Teneo to set unique on the onetomany. The unique attribute on onetomany is a teneo
extension. The unique attribute on the one-to-many is used to determine if a join table should be
used (yes if isunique=false) and if the hibernate mapping should have a list or set mapping.

The bugzilla has been updated with this information.

gr. Martin

Michael Kanaley wrote:
> The bug below doesn't describe why this was done.
> 156934: Disable use of unique attribute of eattribute to set unique
> constraint
>
> I didn't see any options that would turn this back on.
> This is easy to remedy using annotations but I would like to know the reason
> why so I can inform other people in my organization why they have to do
> this.
> Thanks,
> -mike
>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
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: Why is the unique attribute of EAttribute ignored? [message #602662 is a reply to message #71871] Fri, 16 February 2007 04:21 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
The unique attribute only has a meaning for EMF if the feature is a many feature. In that case it is
used by Teneo to set unique on the onetomany. The unique attribute on onetomany is a teneo
extension. The unique attribute on the one-to-many is used to determine if a join table should be
used (yes if isunique=false) and if the hibernate mapping should have a list or set mapping.

The bugzilla has been updated with this information.

gr. Martin

Michael Kanaley wrote:
> The bug below doesn't describe why this was done.
> 156934: Disable use of unique attribute of eattribute to set unique
> constraint
>
> I didn't see any options that would turn this back on.
> This is easy to remedy using annotations but I would like to know the reason
> why so I can inform other people in my organization why they have to do
> this.
> Thanks,
> -mike
>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
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:[Teneo] IdentifierCacheHandler does not work for EObjects with hashCode implementations
Next Topic:[Teneo] Seems that EAttributes of type EByteArray are not mapped correctly against hibernate
Goto Forum:
  


Current Time: Tue Oct 20 12:36:50 GMT 2020

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

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

Back to the top