Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ARSnova Backend
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Privacy
Imprint
Contact
Snippets
Groups
Projects
Show more breadcrumbs
John Samuel Ako Deutesfeld
ARSnova Backend
Commits
39790f9c
There was an error fetching the commit references. Please try again later.
Commit
39790f9c
authored
7 years ago
by
Daniel Gerhardt
Browse files
Options
Downloads
Patches
Plain Diff
Add revision to Entity interface
parent
1c30ba89
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/de/thm/arsnova/entities/DbUser.java
+2
-2
2 additions, 2 deletions
src/main/java/de/thm/arsnova/entities/DbUser.java
src/main/java/de/thm/arsnova/entities/Entity.java
+3
-0
3 additions, 0 deletions
src/main/java/de/thm/arsnova/entities/Entity.java
with
5 additions
and
2 deletions
src/main/java/de/thm/arsnova/entities/DbUser.java
+
2
−
2
View file @
39790f9c
...
...
@@ -45,12 +45,12 @@ public class DbUser implements Entity {
}
@JsonView
(
View
.
Persistence
.
class
)
public
String
getRev
()
{
public
String
getRev
ision
()
{
return
rev
;
}
@JsonView
(
View
.
Persistence
.
class
)
public
void
setRev
(
String
rev
)
{
public
void
setRev
ision
(
String
rev
)
{
this
.
rev
=
rev
;
}
...
...
This diff is collapsed.
Click to expand it.
src/main/java/de/thm/arsnova/entities/Entity.java
+
3
−
0
View file @
39790f9c
...
...
@@ -24,6 +24,9 @@ public interface Entity {
String
getId
();
void
setId
(
String
id
);
String
getRevision
();
void
setRevision
(
String
id
);
@JsonView
(
View
.
Persistence
.
class
)
default
Class
<?
extends
Entity
>
getType
()
{
return
getClass
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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