Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 334168 - Don't specify Entity name when same as default
Summary: Don't specify Entity name when same as default
Status: VERIFIED FIXED
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: Diagram Editor (show other bugs)
Version: 0.5   Edit
Hardware: All All
: P3 minor (vote)
Target Milestone: 3.0 M6   Edit
Assignee: Petya Sabeva CLA
QA Contact: Stefan Dimov CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-12 16:43 EST by Shaun Smith CLA
Modified: 2011-04-19 20:24 EDT (History)
1 user (show)

See Also:


Attachments
patch (6.18 KB, patch)
2011-01-26 07:51 EST, Petya Sabeva CLA
stefan.dimov: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Shaun Smith CLA 2011-01-12 16:43:10 EST
In the JPA Diagram Editor, changing the default name of an Entity created in the editor results in the refactoring of the class and addition of a name property on the @Entity annotation that matches the default which is the class short name.  E.g.,

@Entity(name = "Foo")
public class Foo {

Mapping values should only be specified when they are non-default unless explicitly set by the user.
Comment 1 Petya Sabeva CLA 2011-01-26 07:51:46 EST
Created attachment 187631 [details]
patch
Comment 2 Stefan Dimov CLA 2011-01-26 09:27:54 EST
Patch committed ...
Comment 3 Stefan Dimov CLA 2011-02-08 10:18:36 EST
The fix was submitted in the timeframe of M5, but the JPA Diagram Editor wasn't integrated in PDE build of WTP before the M5 release date, so I'm retargeting this bug to M6.
Comment 4 Jolene Moffitt CLA 2011-04-19 20:24:42 EDT
Verified in Build I-3.3.0-20110414085808

Verified when you rename the entity that after refactor the entity name and public class names are not both created.  See the link to view test steps
for verification. http://wiki.eclipse.org/Dali_3.0_M6