Mercurial > hg > LGServices
view src/main/java/de/mpiwg/gazetteer/bo/LGFullTextSearchFile.java @ 40:35ed4e650a53
bug fixed: full text search when section not found in section_index table. add paginator
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Mon, 07 Dec 2015 17:06:57 +0100 |
parents | 37840afb7b80 |
children |
line wrap: on
line source
package de.mpiwg.gazetteer.bo; import java.io.Serializable; import java.sql.SQLException; import java.util.ArrayList; import java.util.List; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Inheritance; import javax.persistence.InheritanceType; import javax.persistence.Table; import cl.maps.duplex.DuplexKey; @Entity @Table(name="FullTextSearchFile") @Inheritance(strategy=InheritanceType.TABLE_PER_CLASS) public class LGFullTextSearchFile extends DBEntry implements Cloneable, Serializable { private static final long serialVersionUID = 7805209462045170778L; @Column(name="userId") private Long userId; @Column(name="searchTerms") private String searchTerms; @Column(name="fileName") private String fileName; public boolean isEmpty() { if (this.fileName == null) { return true; } else { return false; } } public Long getUserId() { return userId; } public void setUserId(Long userId) { this.userId = userId; } public String getSearchTerms() { return searchTerms; } public void setSearchTerms(String searchTerms) { this.searchTerms = searchTerms; } public String getFileName() { return fileName; } public void setFileName(String fileName) { this.fileName = fileName; } public DuplexKey<Long, Long> getKey(){ return new DuplexKey<Long, Long>(this.userId, this.id); } }