package com.yeshi.buwan.domain.special;
|
|
import org.springframework.data.annotation.Id;
|
import org.springframework.data.annotation.Transient;
|
import org.springframework.data.mongodb.core.mapping.Document;
|
|
import javax.xml.parsers.SAXParserFactory;
|
import java.util.Date;
|
|
/**
|
* 专题位置映射
|
*/
|
@Document(collection = "searchSpecialPositionMap")
|
public class SearchSpecialPositionMap {
|
|
@Id
|
//位置主键ID
|
private String id;
|
//专题ID
|
private String specialId;
|
//位置ID
|
private String positionId;
|
private Integer weight;
|
private String icon;
|
private Date createTime;
|
private Date updateTime;
|
|
@Transient
|
private SearchSpecial special;
|
|
public static String createId(String specialId, String positionId) {
|
return positionId + "#" + specialId;
|
}
|
|
public String getId() {
|
return id;
|
}
|
|
public void setId(String id) {
|
this.id = id;
|
}
|
|
public String getSpecialId() {
|
return specialId;
|
}
|
|
public void setSpecialId(String specialId) {
|
this.specialId = specialId;
|
}
|
|
public String getPositionId() {
|
return positionId;
|
}
|
|
public void setPositionId(String positionId) {
|
this.positionId = positionId;
|
}
|
|
public Integer getWeight() {
|
return weight;
|
}
|
|
public void setWeight(Integer weight) {
|
this.weight = weight;
|
}
|
|
public String getIcon() {
|
return icon;
|
}
|
|
public void setIcon(String icon) {
|
this.icon = icon;
|
}
|
|
public Date getCreateTime() {
|
return createTime;
|
}
|
|
public void setCreateTime(Date createTime) {
|
this.createTime = createTime;
|
}
|
|
public Date getUpdateTime() {
|
return updateTime;
|
}
|
|
public void setUpdateTime(Date updateTime) {
|
this.updateTime = updateTime;
|
}
|
|
public SearchSpecial getSpecial() {
|
return special;
|
}
|
|
public void setSpecial(SearchSpecial special) {
|
this.special = special;
|
}
|
}
|