dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #24940
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 12272: minor fix
------------------------------------------------------------
revno: 12272
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2013-09-27 11:27:56 +0200
message:
minor fix
modified:
dhis-2/dhis-api/src/main/java/org/hisp/dhis/patient/PatientAttributeOption.java
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-api/src/main/java/org/hisp/dhis/patient/PatientAttributeOption.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/patient/PatientAttributeOption.java 2013-09-26 11:11:57 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/patient/PatientAttributeOption.java 2013-09-27 09:27:56 +0000
@@ -29,7 +29,7 @@
*/
import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import org.hisp.dhis.common.BaseIdentifiableObject;
@@ -40,7 +40,7 @@
/**
* @author Viet
*/
-@JacksonXmlRootElement( localName = "personAttributeOption", namespace = DxfNamespaces.DXF_2_0 )
+@JacksonXmlRootElement(localName = "personAttributeOption", namespace = DxfNamespaces.DXF_2_0)
public class PatientAttributeOption implements Serializable
{
/**
@@ -117,7 +117,7 @@
}
@JsonProperty
- @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 )
+ @JacksonXmlProperty(namespace = DxfNamespaces.DXF_2_0)
public String getName()
{
return name;
@@ -129,8 +129,8 @@
}
@JsonProperty
- @JsonDeserialize( as = BaseIdentifiableObject.class )
- @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 )
+ @JsonSerialize(as = BaseIdentifiableObject.class)
+ @JacksonXmlProperty(namespace = DxfNamespaces.DXF_2_0)
public PatientAttribute getPatientAttribute()
{
return patientAttribute;