| | |
| | | |
| | | import com.yeshi.buwan.util.StringUtil; |
| | | import org.apache.solr.client.solrj.beans.Field; |
| | | import org.hibernate.validator.constraints.NotEmpty; |
| | | import org.hibernate.validator.constraints.NotBlank; |
| | | import org.springframework.data.annotation.Id; |
| | | import org.springframework.data.annotation.Transient; |
| | | import org.springframework.data.mongodb.core.mapping.Document; |
| | | import org.springframework.data.solr.core.mapping.Indexed; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 全网搜实体 |
| | | */ |
| | | @Document(collection = "internetSearchVideo") |
| | | public class InternetSearchVideo { |
| | | public class InternetSearchVideo implements Serializable { |
| | | |
| | | @NotEmpty(message = "id不能为空") |
| | | @NotBlank(message = "id不能为空") |
| | | @Id |
| | | @Field |
| | | private String id; |
| | | @NotEmpty(message = "名称不能为空") |
| | | @NotBlank(message = "名称不能为空") |
| | | @Field |
| | | private String name; |
| | | @Field |
| | | private String nameStr; |
| | | @NotEmpty(message = "竖图不能为空") |
| | | @NotBlank(message = "竖图不能为空") |
| | | @Field |
| | | private String vpicture; |
| | | @NotEmpty(message = "横图不能为空") |
| | | // @NotBlank(message = "横图不能为空") |
| | | @Field |
| | | private String hpicture; |
| | | @Field |
| | |
| | | |
| | | private String desc; |
| | | |
| | | private String types; |
| | | |
| | | private String score; |
| | | |
| | | public String getScore() { |
| | | return score; |
| | | } |
| | | |
| | | public void setScore(String score) { |
| | | this.score = score; |
| | | } |
| | | |
| | | public String getTypes() { |
| | | return types; |
| | | } |
| | | |
| | | public void setTypes(String types) { |
| | | this.types = types; |
| | | } |
| | | |
| | | public Date getSolrTime() { |
| | | return solrTime; |
| | | } |