Toggle navigation
Toggle navigation
This project
Loading...
Sign in
grogv3
/
grog-cubi
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Jean-Francois Leveque
2016-11-17 15:06:09 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5a0a991cb224a2bd9dddcba7ac2ce72db75ad5bf
5a0a991c
1 parent
d7d8b5df
Nettoyage du vieil identifiant et suppression des données transférées dans le nouveau modèle.
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
24 deletions
src/main/java/org/legrog/entities/Publisher.java
src/main/java/org/legrog/entities/Publisher.java
View file @
5a0a991
...
...
@@ -15,18 +15,12 @@ public class Publisher /* extends org.roliste.data.DbLinkableEntity */ {
// TODO L'éventuel usage de Linkable reste à confirmer https://tree.taiga.io/project/jr-utily-grog-v3/us/48
// TODO Attention, en v2 Linkable implique Traceable (journalisable) qui devrait aussi être évalué
@Id
@Column
(
name
=
"PUBLISHER_ID"
)
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
@GeneratedValue
(
strategy
=
GenerationType
.
AUTO
)
private
int
publisherId
;
@OneToOne
private
PublisherVersion
validatedVersion
;
@OneToOne
private
User
validator
;
private
Timestamp
validationDateTime
;
@OneToMany
(
mappedBy
=
"publisher"
,
fetch
=
FetchType
.
EAGER
)
private
Set
<
PublisherVersion
>
versions
;
...
...
@@ -54,24 +48,8 @@ public class Publisher /* extends org.roliste.data.DbLinkableEntity */ {
this
.
versions
=
versions
;
}
public
User
getValidator
()
{
return
validator
;
}
public
void
setValidator
(
User
activeValidator
)
{
this
.
validator
=
activeValidator
;
}
public
Timestamp
getValidationDateTime
()
{
return
validationDateTime
;
}
public
void
setValidationDateTime
(
Timestamp
validationDateTime
)
{
this
.
validationDateTime
=
validationDateTime
;
}
@Override
public
String
toString
()
{
return
"PUBLISHER_ID = "
+
publisherId
+
", Validated Version = "
+
validatedVersion
+
", Validator = "
+
validator
+
", Validation DateTime = "
+
validationDateTime
;
return
"PUBLISHER_ID = "
+
publisherId
+
", Validated Version = "
+
validatedVersion
;
}
}
...
...
Please
register
or
login
to post a comment