| Summary: | The list of discriminator column not updated when table of entity changed | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [WebTools] Dali JPA Tools | Reporter: | Nan Li <nan.n.li> | ||||||
| Component: | JPA | Assignee: | Nan Li <nan.n.li> | ||||||
| Status: | VERIFIED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | jolene.moffitt, karenfbutzke, neil.hauge | ||||||
| Version: | unspecified | Flags: | karenfbutzke:
review+
|
||||||
| Target Milestone: | 3.3 M2 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows 7 | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Nan Li
Moving JPA specific bugs to new JPA component in bugzilla. order column has the same issue. Reproduce steps: 1. Define a ManyToMany mapping 2. Change the join table of the mapping and check the list of columns in the Name drop down under Ordering -> Order column The list of order columns should be updated automatically once the join table is changed, but it isn't. Switching focus area is required to get the list repopulated. Note: The column for the OrderColumn depends on the mapping. For a OneToMany mapping it will be in the target object's table. For a ManyToMany mapping or a OneToMany using a JoinTable it will be in the join table. For an ElementCollection mapping it will be in the target table. Created attachment 220603 [details]
proposed patch
This patch includes fixes for the repopulating issue of both discriminator column and order column combo box.
The proposed patch is based on the following commit: 8e884ee Fixed filtering of completion proposals after... Karen Butzke Patch looks good, committed to master: http://git.eclipse.org/c/dali/webtools.dali.git/commit/?id=0079c7c700e873a05fb547c9ee7ee63b4c777316 I have reopened this bug due to junit test failures. I reverted the commit with this commit: http://git.eclipse.org/c/dali/webtools.dali.git/commit/?id=49b62e1aa96cbc360da111e0bfb04a13304fc42d Check the .log file in the junit test workspace for the NPE that is causing the test failures Created attachment 221481 [details]
proposed patch
The NPE was thrown because the owner of the orderable (GenericJavaOrderable and GenericOrmOrderable) is null for JPA 1.0 mappings. A null check is added to prevent the NPE from happening. The patch works the same as the previous one and is based on the following commit:
9977e7b Oxm file version validation Paul Fullbright
fixed in master with commit: http://git.eclipse.org/c/dali/webtools.dali.git/commit/?id=1821c15112f586ba99efc7ed2801aee4081ed134 Verified in build I-3.5.0-20121003040013 that you can update the table names and columns for that new table are updated without having to change the focus and come back. To view steps to verify this issue go to http://wiki.eclipse.org/Dali_3.3_M2_Release |