Bug 231176 - orm.xml default access combo not updating
Summary: orm.xml default access combo not updating
Status: VERIFIED FIXED
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: General (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 2.0.1   Edit
Assignee: Karen Butzke CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-08 14:30 EDT by Karen Butzke CLA
Modified: 2008-08-21 17:17 EDT (History)
1 user (show)

See Also:
neil.hauge: review+


Attachments
proposed patch - HEAD (836 bytes, patch)
2008-06-12 09:56 EDT, 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 Karen Butzke CLA 2008-05-08 14:30:51 EDT
@Entity
public class Employee {
  @Id private int id;
}

Add the above class to the orm.xml file.  You will see the Access type combo displays Default(Field) for the Employee Entity.  Check the 'Metadata Complete' check box and the Access combo should change to Default() because there is no longer a default.  It does not change, but if you switch to another entity and come back, the combo box will be updated.
Comment 1 Karen Butzke CLA 2008-06-10 11:37:38 EDT
should be easy to fix, targeting for 2.0.1
Comment 2 Karen Butzke CLA 2008-06-12 09:56:47 EDT
Created attachment 104680 [details]
proposed patch - HEAD

simple change to call populateCombo instead of updateSelection.  In this case, the selection wasn't actually changing, just the display string of it.  The combo doesn't update in that case.  Really needed to remove the options and add them back again. A little bit of overkill for most cases, but low risk fix for a patch release
Comment 3 Karen Butzke CLA 2008-07-09 16:37:51 EDT
checked patch in to HEAD, no branch for 2.0.1 yet
Comment 4 Neil Hauge CLA 2008-08-21 17:17:50 EDT
Verified in wtp-sdk-R-3.0.1-20080818032401.