Created
March 12, 2012 14:36
-
-
Save vastdevblog/2022351 to your computer and use it in GitHub Desktop.
A very simple model for use by the ExampleServer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.vast.exmaple; | |
import org.codehaus.jackson.annotate.JsonPropertyOrder; | |
// Fix the order that properties are emitted when using | |
// jackson to serialize this to json. | |
@JsonPropertyOrder(alphabetic = true) | |
public class SimpleModel { | |
private String id; | |
private String name; | |
private String address; | |
public SimpleModel(String id, String name, String address) { | |
this.id = id; | |
this.name = name; | |
this.address = address; | |
} | |
public String getId() { | |
return id; | |
} | |
public String getName() { | |
return name; | |
} | |
public String getAddress() { | |
return address; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment