| Summary: | Primary key generation, Generator name combo does not remove text from source | ||
|---|---|---|---|
| Product: | [WebTools] Dali JPA Tools | Reporter: | Paul Fullbright <paul.fullbright> |
| Component: | JPA | Assignee: | Nan Li <nan.n.li> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | jolene.moffitt, karenfbutzke, neil.hauge |
| Version: | 2.3 | ||
| Target Milestone: | 3.3 | ||
| Hardware: | PC | ||
| OS: | Windows Vista | ||
| Whiteboard: | |||
The following exception is thrown along with this. java.lang.NullPointerException at org.eclipse.jpt.jpa.ui.internal.details.GeneratedValueComposite$3.setValue_(GeneratedValueComposite.java:155) at org.eclipse.jpt.jpa.ui.internal.details.GeneratedValueComposite$3.setValue(GeneratedValueComposite.java:144) at org.eclipse.jpt.jpa.ui.internal.details.GeneratedValueComposite$3.setValue(GeneratedValueComposite.java:1) at org.eclipse.jpt.common.ui.internal.swt.AbstractComboModelAdapter.selectionChanged(AbstractComboModelAdapter.java:504) at org.eclipse.jpt.common.ui.internal.swt.AbstractComboModelAdapter.comboSelectionChanged(AbstractComboModelAdapter.java:496) at org.eclipse.jpt.common.ui.internal.swt.AbstractComboModelAdapter$3.modifyText(AbstractComboModelAdapter.java:223) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:179) Moving JPA specific bugs to new JPA component in bugzilla. Targeting to Juno release. Nan and I can't reproduce this issue anymore. Brian's change to ignore java element change events when in the JPA Details view probably solved this problem Verified in build I-3.5.0-20121003040013 that when you backspace in the Generator name field the editor is updated correctly and no errors appear. Verified you can perform the same action in the orm.xml mapping file and no errors appear. To view steps for testing go to http://wiki.eclipse.org/Dali_3.3_Release |
With the following in java source, @Entity public class Bar { @Id @GeneratedValue(generator = "foo") private String foo; } type in the Generator name combo. Then backspace out. The combo is left with nothing in it, but the source is left with: @GeneratedValue(generator = "f") The same thing happens in xml as well.