| | |
| | | |
| | | 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; |
| | | |
| | |
| | | @Document(collection = "internetSearchVideo") |
| | | public class InternetSearchVideo { |
| | | |
| | | @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 |