Last active
June 23, 2020 10:23
-
-
Save nikhil3000/6aa84eeceef64d2ce050d9fd1061df0c to your computer and use it in GitHub Desktop.
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
public class User { | |
private int id; | |
private String name; | |
public User() {} | |
public User(int _id, String _name) { | |
this.id = _id; | |
this.name = _name; | |
} | |
@JsonProperty | |
public int getid() { | |
return id; | |
} | |
@JsonProperty | |
public String getName() { | |
return name; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment