Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 347865 - Join columns strategy ui issues of one-to-many mapping
Summary: Join columns strategy ui issues of one-to-many mapping
Status: NEW
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: JPA (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Neil Hauge CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-31 17:07 EDT by Nan Li CLA
Modified: 2013-09-06 16:49 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nan Li CLA 2011-05-31 17:07:16 EDT
Build Identifier: I20110525-0800

1. Define a one-to-many mapping
2. Go to Joining Strategy and select Join columns -> Result 1
3. Select Override default checkbox -> Result 2
4. Try to add one join column by clicking Add button -> Result 3

Result 1: The "Override default" checkbox by default is selected which is incorrect. The initial state of the checkbox should be unchecked.
Result 2: The join strategy switches from join columns to join table which is incorrect.
Result 3: The default join column is changed from something like "Default(foo_Id) -> Defult(Id)" to "Default(null) -> Defult(null)".

Reproducible: Always
Comment 1 Neil Hauge CLA 2011-07-01 16:24:42 EDT
Moving JPA specific bugs to new JPA component in bugzilla.
Comment 2 Karen Butzke CLA 2012-05-03 10:12:36 EDT
I think results 1 and 2 can be covered by bug 378306. I will leave this bug open to fix the remaining issue. Potentially when the user add a join column we could fully specify the the original empty @JoinColumn. This might also be affected by supporting multiple default join columns in EclipseLink