Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
TAM
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
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
Container 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
EIP
Labrador
TAM
Merge requests
!215
You need to sign in or sign up before continuing.
Add dates for GDPR events
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
Add dates for GDPR events
76-add-dates-for-gdpr-events
into
dev
Overview
4
Commits
2
Pipelines
6
Changes
12
Merged
Add dates for GDPR events
Timur Oberhuber
requested to merge
76-add-dates-for-gdpr-events
into
dev
Oct 7, 2022
Overview
4
Commits
2
Pipelines
6
Changes
12
Description
Adds Created and Last Modified Date to all Models
Why? Because then we can delete based on GDPR rules later if necessary
Related Issues
Resolves
#76 (closed)
Checklist
I have added a changelog entry to reflect the significant changes I made.
Edited
Oct 7, 2022
by
Timur Oberhuber
1
0
Merge request reports
Compare
dev
version 3
c8e1ffee
Oct 10, 2022
version 2
c8e1ffee
Oct 7, 2022
version 1
c8e1ffee
Oct 7, 2022
dev (base)
and
latest version
latest version
c905e4fe
2 commits,
Oct 10, 2022
version 3
c8e1ffee
1 commit,
Oct 10, 2022
version 2
c8e1ffee
8 commits,
Oct 7, 2022
version 1
c8e1ffee
1 commit,
Oct 7, 2022
12 files
+
147
−
152
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
12
src/main/java/nl/tudelft/tam/model/Application.java
+
18
−
0
View file @ c905e4fe
Edit in single-file editor
Open in Web IDE
Show full file
@@ -18,6 +18,7 @@
package
nl.tudelft.tam.model
;
import
java.io.Serializable
;
import
java.time.LocalDate
;
import
javax.persistence.*
;
import
javax.validation.constraints.NotNull
;
@@ -56,4 +57,21 @@ public class Application {
@Builder
.
Default
private
Status
status
=
Status
.
SUBMITTED
;
@NotNull
@Builder
.
Default
private
LocalDate
createdDate
=
LocalDate
.
now
();
@NotNull
@Builder
.
Default
private
LocalDate
lastModifiedDate
=
LocalDate
.
now
();
@PreUpdate
public
void
setLastModifiedDate
()
{
this
.
lastModifiedDate
=
LocalDate
.
now
();
}
@PrePersist
public
void
setCreatedDate
()
{
this
.
createdDate
=
LocalDate
.
now
();
}
}
Loading