| Summary: | Order column is disabled when setting all the attributes of it to default | ||
|---|---|---|---|
| Product: | [WebTools] Dali JPA Tools | Reporter: | Nan Li <nan.n.li> |
| Component: | JPA | Assignee: | Nan Li <nan.n.li> |
| Status: | NEW --- | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | neil.hauge |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Nan Li
Moving JPA specific bugs to new JPA component in bugzilla. Targeting to Juno release. One more finding for Java: after giving a value to Order column, selecting other ordering options and then select back to Order column, the previous given value is retained in the UI while the Java class only has @OrderColumn annotation.
1. Regarding this issue with Java, the annotation will be removed if it is "Unset". See
OrderColumnComposite2_0.ColumnCombo.setValue(String value) {
getSubject().setSpecifiedName(value);
}
=> AbstractJavaNamedColumn.setSpecifiedName(String name) {
......
this.removeColumnAnnotationIfUnset();
......
}
2. Regarding this issue with ORM, the element will be removed if it is "Unset". See
OrderColumnComposite2_0.ColumnCombo.setValue(String value) {
getSubject().setSpecifiedName(value);
}
=> AbstractOrmNamedColumn.setSpecifiedName(String name) {
......
this.removeXmlColumnIfUnset();
}
The root cause for the issue of ORM could be how EMF translator works. A element will be removed from the XML if its value is null. See bug 373540 comment 1.
|