- package com.example.springtest.demo.entities;
-
- import javax.persistence.*;
-
- @Entity // This tells Hibernate to make a table out of this class
- @Table(name="USERS")
- public class User {
- @Id
- // @GeneratedValue(strategy= GenerationType.AUTO)
- public String uId;
- public String name;
- public String password;
- public String uri;
-
- public User() {
- }
-
- public User(String uId, String name, String password) {
- this.uId = uId;
- this.name = name;
- this.password = password;
- }
-
- // public User(String uId, String name, String password, String uri) {
- // this.uId = uId;
- // this.name = name;
- // this.password = password;
- // this.uri = uri;
- // }
-
- public String getuId() {
- return uId;
- }
-
- public String getName() {
- return name;
- }
-
- public String getPassword() {
- return password;
- }
-
- public void setuId(String uId) {
- this.uId = uId;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- public void setPassword(String password) {
- this.password = password;
- }
-
- public void setUri(String uri) {
- this.uri = uri;
- }
- }