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
4a1bb3ccc3f6f7e3086343aad3ee85d827e3b95b
4a1bb3cc
1 parent
cb6d34c7
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
1 additions
and
23 deletions
src/main/java/org/legrog/entities/Publisher.java
src/main/java/org/legrog/entities/Publisher.java
View file @
4a1bb3c
...
...
@@ -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
.
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