Rev 21 |
Go to most recent revision |
View as "text/plain" |
Blame |
Compare with Previous |
Last modification |
View Log
| RSS feed
1
package ch.ffhs.webE.domain;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
@
Entity
@Table
(name=
"user")
public class User
{
private int id
;
private String username
;
private String password
;
private String firstname
;
private String lastname
;
private boolean admin
;
@Id
@GeneratedValue
@Column
(name=
"id")
public int getId
() {
return id
;
}
public void setId
(int id
) {
this.
id = id
;
}
@Column
(name=
"username")
public String getUsername
() {
return username
;
}
public void setUsername
(String username
) {
this.
username = username
;
}
@Column
(name=
"lastname")
public String getLastname
() {
return lastname
;
}
public void setLastname
(String lastname
) {
this.
lastname = lastname
;
}
@Column
(name=
"admin")
public boolean isAdmin
() {
return admin
;
}
public void setAdmin
(boolean admin
) {
this.
admin = admin
;
}
@Column
(name=
"firstname")
public void setFirstname
(String firstname
) {
this.
firstname = firstname
;
}
public String getFirstname
() {
return firstname
;
}
@Column
(name=
"password")
public String getPassword
() {
return password
;
}
public void setPassword
(String password
) {
this.
password = password
;
}
}