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-03-03 10:40:25 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2817d94b6491f9eb60c2f860f1c43b60e4f2f327
2817d94b
1 parent
4264e8e7
Création d'IndexedAccount
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
0 deletions
src/main/java/org/legrog/entities/IndexedAccount.java
src/main/java/org/legrog/entities/IndexedAccount.java
0 → 100644
View file @
2817d94
package
org
.
legrog
.
entities
;
import
org.apache.solr.client.solrj.beans.Field
;
import
javax.persistence.Id
;
import
javax.persistence.Lob
;
/**
* Simplified class for searching indexed Accounts
*/
public
class
IndexedAccount
{
@Id
@Field
private
Integer
userId
;
@Lob
@Field
private
String
presentation
;
/**
*
* @param account Account to be simplified as IndexedAccount
*/
public
IndexedAccount
(
Account
account
)
{
this
.
userId
=
account
.
getUserId
();
this
.
presentation
=
account
.
getPresentation
();
}
public
IndexedAccount
()
{
}
public
Integer
getUserId
()
{
return
userId
;
}
public
void
setUserId
(
Integer
userId
)
{
this
.
userId
=
userId
;
}
public
String
getPresentation
()
{
return
presentation
;
}
public
void
setPresentation
(
String
presentation
)
{
this
.
presentation
=
presentation
;
}
}
Please
register
or
login
to post a comment