Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 346997 - Customizing of generated entities with interfaces and superclasses does not work.
Summary: Customizing of generated entities with interfaces and superclasses does not w...
Status: VERIFIED FIXED
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: General (show other bugs)
Version: 2.3.4   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 3.0.1   Edit
Assignee: Leslie Davis CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-24 11:04 EDT by Leo Breuss CLA
Modified: 2011-08-16 10:24 EDT (History)
3 users (show)

See Also:
neil.hauge: review+


Attachments
proposed bug fix patch (2.48 KB, patch)
2011-06-01 19:26 EDT, Leslie Davis CLA
neil.hauge: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Leo Breuss CLA 2011-05-24 11:04:43 EDT
The Dali JPA Tools wizard "Generate Entities from Tables" has a last page to "customize individual entites". If I select an Interface or a Superclass, this setting is ignored and lost immediately when clicking another entity. This is reproducible in my workspace.

One time it accepted a custom interface for an entity, but subsequently I was not able to remove that interface anymore. I don-t know a deterministic way to reproduce that.


Setup: Eclipse Helios, 20110218-0911, WTP updated recently.
Dali Java Persistence Tools
  Version: 2.3.4.v201104192310-7N7UF77FD3wTgcVbmmf0cT
  Build id: 20100915173744
Dali Java Persistence Tools - EclipseLink Support
  Version: 2.3.4.v201104192310-7778BkBgJ9EA9VGcDFBA
  Build id: 20100915173744


Steps to reproduce:
1. First create a public interface and a public class. (no contents required, default will do.)
2. Use the JPA tools wizard to generate TWO entities for TWO tables of a DB.
3. On the last page of the wizard, try to assign an Interface or a superclass to one of the entities. Switch forth and back between the entities. Observe if the custom interface config is kept during switching.
Comment 1 Leo Breuss CLA 2011-05-24 11:06:08 EDT
Can't select v2.3.4 from the drop down for this bug.
Comment 2 Neil Hauge CLA 2011-05-24 11:18:25 EDT
I am definitely seeing some strange behavior in this area as well.  Thanks for the bug report.
Comment 3 Leslie Davis CLA 2011-06-01 19:26:24 EDT
Created attachment 197188 [details]
proposed bug fix patch
Comment 4 Neil Hauge CLA 2011-06-23 17:14:16 EDT
Patch committed to 3.0.1 and head.
Comment 5 Jolene Moffitt CLA 2011-08-16 10:24:53 EDT
Verified in Build I-3.4.0-20110812160550 

Verified generating customizer entities with Interface or Superclass works correctly.  See the link to view test steps for verification.
http://wiki.eclipse.org/Dali_3.0.1