Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class UserBd implements Serializable {
- private static final long serialVersionUID = -3009157732242241606L;
- @Id
- @GeneratedValue(strategy = GenerationType.AUTO)
- private long id;
- @Column(name = "name")
- private String name;
- @Column(name = "password")
- private String password;
- @Column(name = "email")
- private String email;
- public UserBd(){
- }
- public UserBd(String name, long id, String password, String email) {
- this.email = email;
- this.name = name;
- this.id = id;
- this.password = password;
- }
- public String getEmail() {
- return email;
- }
- public void setEmail(String email) {
- this.email = email;
- }
- public String getPassword() {
- return password;
- }
- public void setPassword(String password) {
- this.password = password;
- }
- public UserBd(String name) {
- this.name = name;
- }
- 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;
- }
- }
- {
- "email": "string",
- "id": 0,
- "name": "string",
- "password": "string"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement