Created
December 25, 2016 07:41
-
-
Save janishar/3b800604c16033f24b4135a058af08b6 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 Long id; | |
private String name; | |
private String address; | |
private String createdAt; | |
private String updatedAt; | |
public User() { | |
} | |
public User(String name, String address) { | |
this.name = name; | |
this.address = address; | |
} | |
public Long getId() { | |
return id; | |
} | |
public void setId(Long id) { | |
this.id = id; | |
} | |
public String getName() { | |
return name; | |
} | |
public void setName(String name) { | |
this.name = name; | |
} | |
public String getAddress() { | |
return address; | |
} | |
public void setAddress(String address) { | |
this.address = address; | |
} | |
public String getCreatedAt() { | |
return createdAt; | |
} | |
public void setCreatedAt(String createdAt) { | |
this.createdAt = createdAt; | |
} | |
public String getUpdatedAt() { | |
return updatedAt; | |
} | |
public void setUpdatedAt(String updatedAt) { | |
this.updatedAt = updatedAt; | |
} | |
@Override | |
public String toString() { | |
return "User{" + | |
"id=" + id + | |
", name='" + name + '\'' + | |
", address='" + address + '\'' + | |
", createdAt='" + createdAt + '\'' + | |
", updatedAt='" + updatedAt + '\'' + | |
'}'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment