Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.0-M5
-
Fix Version/s: 1.0-M6
-
Component/s: Aegis Module
-
Labels:None
-
Number of attachments :
Description
The @XmlElement annotation includes a type element but its value is not considered in type mapping.
Example:
@XmlElement(type = "org.codehaus.xfire.aegis.type.basic.DateType")
public Date getStartDate() {
return startDate;
}
...to switch from the default type (which would be xsd:dateTime for java.util.Date) to xsd:date.
Attached is a patch for org.codehaus.xfire.aegis.type.basic.BeanTypeInfo (against the 1.0M5 version) to introduce this functionality. Unfortunately, it renders BeanTypeInfo dependant on Java 5, so this just a preliminary solution.