Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
Equipo 3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
migudel
Equipo 3
Commits
2cf09831
Commit
2cf09831
authored
11 months ago
by
migudel
Browse files
Options
Downloads
Patches
Plain Diff
Resolución de conflictos
parent
471c0d62
No related branches found
No related tags found
2 merge requests
!26
Revert "Funciona register"
,
!25
Dev/angular microservicios
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
java/services/auth/src/main/java/com/uva/authentication/Models/User.java
+17
-17
17 additions, 17 deletions
...uth/src/main/java/com/uva/authentication/Models/User.java
with
17 additions
and
17 deletions
java/services/auth/src/main/java/com/uva/authentication/Models/User.java
+
17
−
17
View file @
2cf09831
...
...
@@ -5,47 +5,55 @@ import java.util.List;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
jakarta.persistence.Basic
;
import
jakarta.persistence.C
ascadeType
;
import
jakarta.persistence.C
olumn
;
import
jakarta.persistence.Entity
;
import
jakarta.persistence.EnumType
;
import
jakarta.persistence.Enumerated
;
import
jakarta.persistence.FetchType
;
import
jakarta.persistence.GeneratedValue
;
import
jakarta.persistence.GenerationType
;
import
jakarta.persistence.Id
;
import
jakarta.persistence.OneToMany
;
import
jakarta.persistence.Inheritance
;
import
jakarta.persistence.InheritanceType
;
import
jakarta.persistence.Table
;
@Entity
@Inheritance
(
strategy
=
InheritanceType
.
JOINED
)
@Table
(
name
=
"users"
)
public
class
User
{
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
@Basic
(
optional
=
false
)
@Column
(
nullable
=
false
)
private
int
id
;
@Basic
(
optional
=
false
)
@Column
(
nullable
=
false
)
private
String
name
;
@Basic
(
optional
=
false
)
@Column
(
nullable
=
false
,
unique
=
true
)
private
String
email
;
@JsonIgnore
@Basic
(
optional
=
false
)
@Enumerated
(
EnumType
.
STRING
)
private
UserStatus
status
=
UserStatus
.
NO_BOOKINGS
;
@Column
(
nullable
=
false
)
private
String
password
;
@Basic
(
optional
=
false
)
@Column
(
nullable
=
false
)
@Enumerated
(
EnumType
.
STRING
)
private
UserRol
rol
=
UserRol
.
CLIENT
;
public
User
()
{
}
public
User
(
int
id
,
String
name
,
String
email
,
UserStatus
status
,
String
password
)
{
public
User
(
int
id
,
String
name
,
String
email
,
String
password
,
UserRol
rol
)
{
setId
(
id
);
setName
(
name
);
setEmail
(
email
);
setStatus
(
status
);
setPassword
(
password
);
setRol
(
rol
);
}
public
int
getId
()
{
...
...
@@ -72,14 +80,6 @@ public class User {
this
.
email
=
email
;
}
public
UserStatus
getStatus
()
{
return
this
.
status
;
}
public
void
setStatus
(
UserStatus
status
)
{
this
.
status
=
status
;
}
public
String
getPassword
()
{
return
this
.
password
;
}
...
...
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment