dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #31908
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 16300: minor bugfix, don't expose Schema.getPropertyMap in json
------------------------------------------------------------
revno: 16300
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2014-08-04 13:35:49 +0700
message:
minor bugfix, don't expose Schema.getPropertyMap in json
modified:
dhis-2/dhis-api/src/main/java/org/hisp/dhis/schema/Schema.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/schema/Schema.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/schema/Schema.java 2014-06-28 04:21:56 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/schema/Schema.java 2014-08-04 06:35:49 +0000
@@ -28,6 +28,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
@@ -286,6 +287,7 @@
return Lists.newArrayList( propertyMap.values() );
}
+ @JsonIgnore
public Map<String, Property> getPropertyMap()
{
return propertyMap;