You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
135 lines
2.6 KiB
135 lines
2.6 KiB
package com.example.urbanbazaar.Model;
|
|
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.GeneratedValue;
|
|
import javax.persistence.Id;
|
|
import javax.persistence.Table;
|
|
|
|
@Entity
|
|
@Table(name = "users")
|
|
public class User {
|
|
|
|
private int userid;
|
|
private String useremail;
|
|
private String userpassword;
|
|
private String userfirstname;
|
|
private String userlastname;
|
|
private String usercity;
|
|
private String userstate;
|
|
private String userzip;
|
|
private String userphone;
|
|
private String useraddress;
|
|
private String useraddress2;
|
|
|
|
@Id
|
|
@GeneratedValue
|
|
public int getUserid() {
|
|
return userid;
|
|
}
|
|
|
|
public void setUserid(int userid) {
|
|
this.userid = userid;
|
|
}
|
|
|
|
public String getUseremail() {
|
|
return useremail;
|
|
}
|
|
|
|
public void setUseremail(String useremail) {
|
|
this.useremail = useremail;
|
|
}
|
|
|
|
public String getUserpassword() {
|
|
return userpassword;
|
|
}
|
|
|
|
public void setUserpassword(String userpassword) {
|
|
this.userpassword = userpassword;
|
|
}
|
|
|
|
public String getUserfirstname() {
|
|
return userfirstname;
|
|
}
|
|
|
|
public void setUserfirstname(String userfirstname) {
|
|
this.userfirstname = userfirstname;
|
|
}
|
|
|
|
public String getUserlastname() {
|
|
return userlastname;
|
|
}
|
|
|
|
public void setUserlastname(String userlastname) {
|
|
this.userlastname = userlastname;
|
|
}
|
|
|
|
public String getUsercity() {
|
|
return usercity;
|
|
}
|
|
|
|
public void setUsercity(String usercity) {
|
|
this.usercity = usercity;
|
|
}
|
|
|
|
public String getUserstate() {
|
|
return userstate;
|
|
}
|
|
|
|
public void setUserstate(String userstate) {
|
|
this.userstate = userstate;
|
|
}
|
|
|
|
public String getUserzip() {
|
|
return userzip;
|
|
}
|
|
|
|
public void setUserzip(String userzip) {
|
|
this.userzip = userzip;
|
|
}
|
|
|
|
public String getUserphone() {
|
|
return userphone;
|
|
}
|
|
|
|
public void setUserphone(String userphone) {
|
|
this.userphone = userphone;
|
|
}
|
|
|
|
public String getUseraddress() {
|
|
return useraddress;
|
|
}
|
|
|
|
public void setUseraddress(String useraddress) {
|
|
this.useraddress = useraddress;
|
|
}
|
|
|
|
public String getUseraddress2() {
|
|
return useraddress2;
|
|
}
|
|
|
|
public void setUseraddress2(String useraddress2) {
|
|
this.useraddress2 = useraddress2;
|
|
}
|
|
|
|
public User(int userid, String useremail, String userpassword, String userfirstname, String userlastname,
|
|
String usercity, String userstate, String userzip, String userphone, String useraddress,
|
|
String useraddress2) {
|
|
|
|
this.userid = userid;
|
|
this.useremail = useremail;
|
|
this.userpassword = userpassword;
|
|
this.userfirstname = userfirstname;
|
|
this.userlastname = userlastname;
|
|
this.usercity = usercity;
|
|
this.userstate = userstate;
|
|
this.userzip = userzip;
|
|
this.userphone = userphone;
|
|
this.useraddress = useraddress;
|
|
this.useraddress2 = useraddress2;
|
|
}
|
|
|
|
public User() {
|
|
|
|
}
|
|
|
|
}
|