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

Bug 339428

Summary: NPE setting attribute overrides to an embedded attribute of EclipseLink 2.0 project
Product: [WebTools] Dali JPA Tools Reporter: Nan Li <nan.n.li>
Component: GeneralAssignee: Karen Butzke <karenfbutzke>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jolene.moffitt
Version: unspecified   
Target Milestone: 3.0 M6   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Stack Trace
none
proposed patch against head none

Description Nan Li CLA 2011-03-09 16:16:22 EST
Build Identifier: I-3.3.0-20110305235707

When trying to set the attribute overrides to an embedded attribute, the attached NPE is thrown, the attribute override column panel doesn't appear, and the "Override default" checkbox disappears if trying to selecting it with the line like below written into the file:

@AttributeOverride(name = "endDate", column = @Column(name = "endDate", table = "Employee"))

Note: This problem happens only when having the test database connected.

Reproducible: Always

Steps to Reproduce:
1. Map an attribute as Embedded 
2. Select the attribute and go to the JPA Details view
3. Try to set the attribute overrides
4. Try to select the "Override default" checkbox

2.
3.
Comment 1 Nan Li CLA 2011-03-09 16:22:56 EST
Created attachment 190794 [details]
Stack Trace

two stack traces included
Comment 2 Karen Butzke CLA 2011-03-09 16:33:30 EST
Created attachment 190797 [details]
proposed patch against head
Comment 3 Karen Butzke CLA 2011-03-09 16:36:32 EST
checked in for M6, simple low-risk fix
Comment 4 Jolene Moffitt CLA 2011-04-19 07:57:18 EDT
Verified in Build I-3.3.0-20110414085808

Verified no error appears when you create an attribute override and when you select the override in the Details the checkbox appears and is checked.  See the link to view test steps for verification. http://wiki.eclipse.org/Dali_3.0_M6