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

Bug 347969

Summary: Default discriminator value not displayed correctly
Product: [WebTools] Dali JPA Tools Reporter: Nan Li <nan.n.li>
Component: JPAAssignee: Karen Butzke <karenfbutzke>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jolene.moffitt, karenfbutzke, neil.hauge
Version: unspecified   
Target Milestone: 3.2 M7   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
proposed patch against head karenfbutzke: review-

Description Nan Li CLA 2011-06-01 11:55:40 EDT
Build Identifier: I20110525-0800

1. Create an entity Foo
2. Create another entity Foo1 making it extend Foo and check the discriminator value of entity Foo1 and then Foo in JPA Details -> Inheritance 
3. Create the third entity Foo2 also making it extend Foo and check the discriminator value of entity Foo2, and then previous created entities in JPA Details -> Inheritance

First checking the discriminator value of the latest created entity is to repopulate the values of JPA Details.

You'll see the default discriminator values of all the entities are changed to that of the last created entity. In other words, after step 3, the discriminator values of Foo, Foo1 and Foo2 all default to "Default(Foo2)". At this point, if you change the default discriminator values of Foo to "Default(Foo)" by selecting it from the drop down list, switch the focus area and then go back to JPA Details, all the values will be changed to "Default(Foo)".

Reproducible: Always
Comment 1 Karen Butzke CLA 2011-06-07 14:39:45 EDT
Created attachment 197531 [details]
proposed patch against head

I have a attached a potential fix for this bug. I feel like this is a bit of hackery and am not sure it is worth the risk to fix this bug in maintenance.
Comment 2 Neil Hauge CLA 2011-06-07 14:56:17 EDT
Agreed, re-targeting for 3.1.
Comment 3 Neil Hauge CLA 2011-07-01 16:24:48 EDT
Moving JPA specific bugs to new JPA component in bugzilla.
Comment 4 Karen Butzke CLA 2011-07-06 15:14:45 EDT
Setting this to M2, not sure about the fix yet, need to discuss it some more.
Comment 5 Karen Butzke CLA 2012-04-02 14:24:35 EDT
Fixed this bug in 3.2M7, did not use the attached patch
Comment 6 Jolene Moffitt CLA 2012-04-16 12:14:09 EDT
Verified in Build I-3.4.0-20120412024306  

Verified Descriptor Values are correct when you create entities and also when you change them the others still remain the same.  See the link to view test steps for verification. http://wiki.eclipse.org/Dali_3.2_M7