json filter work

This commit is contained in:
John Woodlock
2012-05-24 11:55:44 +10:00
parent 9c8edb45a3
commit ce59a3c1cf
3 changed files with 51 additions and 2 deletions
+6 -1
View File
@@ -7,13 +7,18 @@ targetCompatibility = JavaVersion.VERSION_1_6
group = 'org.mifosng.data'
version = '0.2'
jerseyVersion = '1.12'
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
compile( [group: 'joda-time', name: 'joda-time', version: '2.1'],)
compile( [group: 'joda-time', name: 'joda-time', version: '2.1'],
[group: 'com.sun.jersey', name: 'jersey-json', version: jerseyVersion],
)
}
uploadArchives {
@@ -6,9 +6,11 @@ import java.util.List;
import javax.xml.bind.annotation.XmlRootElement;
import org.codehaus.jackson.map.annotate.JsonFilter;
import org.joda.time.LocalDate;
@XmlRootElement(name = "office")
@JsonFilter("myFilter")
public class OfficeData implements Serializable {
private Long id;