Community
Participate
Working Groups
Build Identifier: I20110525-0800 1. Create an orderable mapping 2. Go to JPA Details -> Ordering 3. Select Order column and give any value to it 4. Reset everything to default Results: 1. With Java, the OrderColumn annotation is removed from the source even though Order column option is still shown as selected in the UI. 2. With Orm, the order-column element is removed from the XML and the "None" option is selected. "None" and "Order column" are different states so we should not set the order column option to none if all the attributes of the order column are set to default. Reproducible: Always
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.