Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 338725

Summary: @Basic should not be added to attributes
Product: [WebTools] Dali JPA Tools Reporter: Shaun Smith <shaun.smith>
Component: Diagram EditorAssignee: Petya Sabeva <petya.sabeva>
Status: CLOSED FIXED QA Contact: Stefan Dimov <stefan.dimov>
Severity: normal    
Priority: P3 CC: karenfbutzke, neil.hauge, petya.sabeva
Version: 0.5Keywords: plan
Target Milestone: 3.3 M2Flags: stefan.dimov: review+
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on: 325531    
Bug Blocks:    
Attachments:
Description Flags
patch none

Description Shaun Smith CLA 2011-03-02 15:03:19 EST
In Bug 325531, comment 5 Stefan correctly indicates that @Basic should not be added when unnecessary.  The fix for Bug 325531 only addressed the import problem and not the unnecessary @Basic.
Comment 1 Petya Sabeva CLA 2011-05-10 10:27:56 EDT
Created attachment 195221 [details]
patch
Comment 2 Stefan Dimov CLA 2011-05-10 12:11:40 EDT
The bug is not a big deal, but also is the fix. This one stayed open for a long time and now it has a fix. 

The bug does not need workaround because it's about creating a new basic attribute without the redundant @Basic annotation.

The fix is trivial - just a string parameter changed from "@Basic" to "". I've reviewed it and I think it's ok. I've tested it manually. 

The risk is low.
Comment 3 Neil Hauge CLA 2011-05-10 13:17:50 EDT
I don't think I can make a case for this as an important bug fix for RC1 since it is more of an issue of preference, although I would suspect most would prefer to not insert the basic annotation into the code.  I will leave this targeted to 3.1 for now.  If someone would like to argue for inclusion into RC1, please do so here so it can be documented for PMC review.
Comment 4 Stefan Dimov CLA 2011-05-10 13:24:40 EDT
(In reply to comment #3)

Just one note:

> ... although I would suspect most would
> prefer to not insert the basic annotation into the code

That's exactly what the fix is about. With it, when a new attribute is created the @Basic annotation is NOT being inserted into the code ...
Comment 5 Neil Hauge CLA 2011-10-27 11:16:35 EDT
The 3.2 target now represents the Juno release.
Comment 6 Petya Sabeva CLA 2012-05-04 02:02:46 EDT
Retargeting this bug to the Kepler realease (3.3).
Comment 7 Petya Sabeva CLA 2012-09-18 04:07:16 EDT
The Basic annotation is removed with the following git commit:

http://git.eclipse.org/c/dali/webtools.dali.git/commit/?id=387e840daab9cab568e723283ceda994db8c9b58

The change still needs to be released.
Comment 8 Petya Sabeva CLA 2012-10-03 02:40:24 EDT
Changes are released...