Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
naomod
Object-Oriented Software Analysis and Design (OOAD)
Projet 2020 - Not Alone
Commits
e0e40983
Commit
e0e40983
authored
Dec 01, 2020
by
Killian LUCAS
Browse files
push user
parent
3df2a92e
Changes
1
Hide whitespace changes
Inline
Side-by-side
not-alone-server/src/main/java/fr/univnantes/alma/data/item/User.java
View file @
e0e40983
package
fr.univnantes.alma.data.item
;
import
javax.persistence.*
;
@Entity
@Table
(
name
=
"users"
)
public
class
User
{
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
AUTO
)
private
Long
id
;
private
String
mail
;
private
String
passwordHash
;
private
String
pseudo
;
...
...
@@ -9,11 +16,20 @@ public class User {
protected
User
(){}
public
User
(
String
mail
,
String
password
,
String
pseudo
){
this
.
mail
=
this
.
mail
;
this
.
mail
=
mail
;
this
.
passwordHash
=
hash
(
password
);
this
.
pseudo
=
pseudo
;
}
@Override
public
String
toString
()
{
return
String
.
format
(
"Customer[id=%d, mail='%s', password='%s',pseudo='%s']"
,
id
,
mail
,
passwordHash
,
pseudo
);
}
public
Long
getId
(){
return
id
;
}
public
String
getMail
()
{
return
mail
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment