Why is the unique attribute of EAttribute ignored? [message #71871] |
Thu, 15 February 2007 13:42  |
Eclipse User |
|
|
|
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] |
Thu, 15 February 2007 23:21  |
Eclipse User |
|
|
|
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] |
Thu, 15 February 2007 23:21  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03524 seconds