Jean-Francois Leveque

Création d'IndexedAccount

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;
}
}