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
2017-02-13 10:39:13 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
371b17d6f67728636cb378bebf932212b0e7fc2f
371b17d6
1 parent
22f8c8dd
Javadoc
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
10 deletions
src/main/java/org/legrog/entities/Country.java
src/main/java/org/legrog/entities/IndexedPublisher.java
src/main/java/org/legrog/entities/IndexingException.java
src/main/java/org/legrog/entities/Publisher.java
src/main/java/org/legrog/entities/Country.java
View file @
371b17d
...
...
@@ -2,12 +2,12 @@ package org.legrog.entities;
import
javax.persistence.*
;
/*
Entité persistante repésentant un pays.
Simplement composée d'un identitiant et d'un libellé.
/*
*
*
Entité persistante repésentant un pays.
*
Simplement composée d'un identitiant et d'un libellé.
*/
@Entity
public
class
Country
/* extends org.roliste.data.DbEntity */
{
public
class
Country
{
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
private
int
countryId
;
...
...
src/main/java/org/legrog/entities/IndexedPublisher.java
View file @
371b17d
...
...
@@ -3,6 +3,9 @@ import org.apache.solr.client.solrj.beans.Field;
import
javax.persistence.Id
;
import
javax.persistence.Lob
;
/**
* Classe simplifiée du contenu éditeur servant à l'indexation de données du PublisherVersion valide avec l'identifiant Publisher correspondant
*/
public
class
IndexedPublisher
{
@Id
@Field
...
...
@@ -13,6 +16,11 @@ public class IndexedPublisher {
@Field
private
String
publisherHistory
;
/**
* Extrait l'id du Publisher et le nom et l'historique du PublisherVersion validé pour construire l'IndexedPublisher
*
* @param publisher
*/
public
IndexedPublisher
(
Publisher
publisher
)
{
PublisherVersion
publisherVersion
=
publisher
.
getValidatedVersion
();
this
.
publisherId
=
publisher
.
getPublisherId
();
...
...
src/main/java/org/legrog/entities/IndexingException.java
View file @
371b17d
...
...
@@ -2,8 +2,8 @@ package org.legrog.entities;
import
javax.ejb.ApplicationException
;
/*
Exception when indexing fails, whatever the reason. Has to be dealt with at service level.
/*
*
*
Exception when indexing fails, whatever the reason. Has to be dealt with at service level.
*/
@ApplicationException
(
rollback
=
true
)
public
class
IndexingException
extends
Exception
{
...
...
src/main/java/org/legrog/entities/Publisher.java
View file @
371b17d
...
...
@@ -3,10 +3,10 @@ package org.legrog.entities;
import
javax.persistence.*
;
import
java.util.Set
;
/*
Entité persistante correspondant à un éditeur.
Pointe vers la version valide si elle existe, ainsi que son validateur et la date de validation.
Pointe vers l'ensemble de ses versions.
/*
*
*
Entité persistante correspondant à un éditeur.
*
Pointe vers la version valide si elle existe, ainsi que son validateur et la date de validation.
*
Pointe vers l'ensemble de ses versions.
*/
@Entity
public
class
Publisher
/* extends org.roliste.data.DbLinkableEntity */
{
...
...
Please
register
or
login
to post a comment