Bug 234628

Summary: ui not updated if you quickly type in or copy in a TableGenerator annotation
Product: [WebTools] Dali JPA Tools Reporter: Karen Butzke <karenfbutzke>
Component: GeneralAssignee: Karen Butzke <karenfbutzke>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: neil.hauge
Version: 2.0Flags: neil.hauge: review+
Target Milestone: 2.0.1   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
proposed patch - HEAD none

Description Karen Butzke CLA 2008-05-29 09:50:03 EDT
In java select an Id mapping and view the TableGenerator section of the JPA details view

type in @TableGenerator(name="foo") without pausing or copy that code in to the source.  The UI updates to show the Table Generator check box as checked, but does not update the name.  Same problem exists for all the other TableGenerator settings as well as GeneratedValue and SequenceGenerator.  Select another mapping and come back and the UI is populated, or type more in to the name element after pausing to allow the JPA model to update to the java changes.
Comment 1 Karen Butzke CLA 2008-06-10 11:06:05 EDT
probably a low risk, simple fix for 2.0.1
Comment 2 Karen Butzke CLA 2008-06-11 12:16:46 EDT
Created attachment 104497 [details]
proposed patch - HEAD

This patch fixes the problem for generators on java id mappings.  I have tested the other locations for generators and they do not have the same problem. (java entity, xml entity, xml id, xml entity-mappings)
Comment 3 Karen Butzke CLA 2008-07-08 21:13:26 EDT
checked in to HEAD, haven't branched for 2.0.1 yet