| | |
| | | package com.yeshi.fanli.entity.bus.user.vip;
|
| | |
|
| | | import java.util.Date;
|
| | |
|
| | | import org.springframework.data.annotation.Id;
|
| | | import org.springframework.data.mongodb.core.mapping.DBRef;
|
| | | import org.springframework.data.mongodb.core.mapping.Document;
|
| | | import org.springframework.data.mongodb.core.mapping.Field;
|
| | |
|
| | | /**
|
| | | * 用户与导师的对应关系
|
| | | * @author Administrator
|
| | | *
|
| | | */
|
| | | @Document(collection = "userTearcherMap")
|
| | | public class UserTearcherMap {
|
| | | @DBRef
|
| | | @Field("tearcher")
|
| | | private TearcherInfo tearcherInfo;
|
| | | @Id
|
| | | private Long uid;
|
| | | private Date createTime;
|
| | | private Date updateTime;
|
| | |
|
| | | public TearcherInfo getTearcherInfo() {
|
| | | return tearcherInfo;
|
| | | }
|
| | |
|
| | | public void setTearcherInfo(TearcherInfo tearcherInfo) {
|
| | | this.tearcherInfo = tearcherInfo;
|
| | | }
|
| | |
|
| | | public Long getUid() {
|
| | | return uid;
|
| | | }
|
| | |
|
| | | public void setUid(Long uid) {
|
| | | this.uid = uid;
|
| | | }
|
| | |
|
| | | 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;
|
| | | }
|
| | |
|
| | | }
|
| | | package com.yeshi.fanli.entity.bus.user.vip; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import org.springframework.data.annotation.Id; |
| | | import org.springframework.data.mongodb.core.mapping.DBRef; |
| | | import org.springframework.data.mongodb.core.mapping.Document; |
| | | import org.springframework.data.mongodb.core.mapping.Field; |
| | | |
| | | /** |
| | | * 用户与导师的对应关系 |
| | | * @author Administrator |
| | | * |
| | | */ |
| | | @Document(collection = "userTearcherMap") |
| | | public class UserTearcherMap { |
| | | @DBRef |
| | | @Field("tearcher") |
| | | private TearcherInfo tearcherInfo; |
| | | @Id |
| | | private Long uid; |
| | | private Date createTime; |
| | | private Date updateTime; |
| | | |
| | | public TearcherInfo getTearcherInfo() { |
| | | return tearcherInfo; |
| | | } |
| | | |
| | | public void setTearcherInfo(TearcherInfo tearcherInfo) { |
| | | this.tearcherInfo = tearcherInfo; |
| | | } |
| | | |
| | | public Long getUid() { |
| | | return uid; |
| | | } |
| | | |
| | | public void setUid(Long uid) { |
| | | this.uid = uid; |
| | | } |
| | | |
| | | 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; |
| | | } |
| | | |
| | | } |