Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 339428 - NPE setting attribute overrides to an embedded attribute of EclipseLink 2.0 project
Summary: NPE setting attribute overrides to an embedded attribute of EclipseLink 2.0 p...
Status: VERIFIED FIXED
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: General (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 3.0 M6   Edit
Assignee: Karen Butzke CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-09 16:16 EST by Nan Li CLA
Modified: 2011-04-19 07:57 EDT (History)
1 user (show)

See Also:


Attachments
Stack Trace (15.96 KB, text/plain)
2011-03-09 16:22 EST, Nan Li CLA
no flags Details
proposed patch against head (1.79 KB, patch)
2011-03-09 16:33 EST, Karen Butzke CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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