Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GoikLectures
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Goik Martin
GoikLectures
Commits
ed202d56
Commit
ed202d56
authored
10 years ago
by
Goik Martin
Browse files
Options
Downloads
Patches
Plain Diff
serialVersionUID, id IDENTITY, longer attribute values
parent
71b4df8d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Sda2/P/forum_1/src/main/java/de/hdm_stuttgart/mi/sda2/forum/domain/User.java
+12
-4
12 additions, 4 deletions
...main/java/de/hdm_stuttgart/mi/sda2/forum/domain/User.java
with
12 additions
and
4 deletions
Sda2/P/forum_1/src/main/java/de/hdm_stuttgart/mi/sda2/forum/domain/User.java
+
12
−
4
View file @
ed202d56
...
...
@@ -13,20 +13,20 @@ import javax.validation.constraints.Size;
@Entity
public
class
User
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1
L
;
private
static
final
long
serialVersionUID
=
-
7123471572071976042
L
;
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
AUTO
)
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
private
Long
id
;
@NotNull
@Column
(
nullable
=
false
)
@Size
(
min
=
1
,
max
=
8
)
@Size
(
min
=
1
,
max
=
40
)
String
name
;
@NotNull
@Column
(
unique
=
true
,
nullable
=
false
)
@Size
(
min
=
1
,
max
=
13
)
@Size
(
min
=
1
,
max
=
40
)
String
email
;
@NotNull
...
...
@@ -34,6 +34,14 @@ public class User implements Serializable {
@Size
(
min
=
1
)
String
password
;
public
User
()
{}
public
User
(
final
String
name
,
final
String
email
,
final
String
pasword
)
{
setName
(
name
);
setEmail
(
email
);
setPassword
(
pasword
);
}
public
Long
getId
()
{
return
id
;
}
...
...
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
register
or
sign in
to comment