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

Bug 346997

Summary: Customizing of generated entities with interfaces and superclasses does not work.
Product: [WebTools] Dali JPA Tools Reporter: Leo Breuss <eclipse.org>
Component: GeneralAssignee: Leslie Davis <les.davis>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: eclipse.org, jolene.moffitt, neil.hauge
Version: 2.3.4Flags: neil.hauge: review+
Target Milestone: 3.0.1   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
proposed bug fix patch neil.hauge: iplog+

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