Community
Participate
Working Groups
Build Identifier: I20101028-1441 Once specifying temporal option to a mapping of a mapping file, DATE type is added as the default value as <temporal>DATE</temporal>. No default value should be set. Reproducible: Always Steps to Reproduce: 1. Create a mapping file 2. Define a basic or id mapping 3. In the JPA Details view, select Type -> Temporal
I think this is as-designed. Temporal requires a setting, and we aren't really setting a Dali "default" in this case, but rather just inserting the first option in the list. The implementation would probably be more like the java implementation, but XML-EMF translators likely made that difficult to achieve, so this seemed like reasonable behavior in the ORM XML. Perhaps Karen could comment on the history here, but either way, I don't think this is worth pursuing at this time.
Moving JPA specific bugs to new JPA component in bugzilla.
Just as what comment 1 says, we give a default value because the XML translator does not support element without value. This is a limitation of the translator. If we want to give a default value, the UI should also have it. Currently the temporal combo box does not get updated if we choose the temporal radio button even though the default value is already written to the source. I update the summary of this bug to track the real issue we want to fix. PS: we need to fix the same issue of enumerated combo box.
This bug is fixed along with the changes of bug 335447.
.