Advertisement
jbjares

PlayActionJava

May 10th, 2015
457
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.64 KB | None | 0 0
  1.  
  2. import org.bson.types.ObjectId;
  3. import org.springframework.data.mongodb.core.mapping.Document;
  4.  
  5. @Document
  6. public class Play {
  7.     private String createTime;
  8.  
  9.     private Song song;
  10.  
  11.     private String time;
  12.  
  13.     private Source source;
  14.  
  15.     private ObjectId _id;
  16.  
  17.     private Location location;
  18.  
  19.     private String userId;
  20.  
  21.     private String actionType;
  22.  
  23.     public String getCreateTime() {
  24.         return createTime;
  25.     }
  26.  
  27.     public void setCreateTime(String createTime) {
  28.         this.createTime = createTime;
  29.     }
  30.  
  31.     public Song getSong() {
  32.         return song;
  33.     }
  34.  
  35.     public void setSong(Song song) {
  36.         this.song = song;
  37.     }
  38.  
  39.     public String getTime() {
  40.         return time;
  41.     }
  42.  
  43.     public void setTime(String time) {
  44.         this.time = time;
  45.     }
  46.  
  47.     public Source getSource() {
  48.         return source;
  49.     }
  50.  
  51.     public void setSource(Source source) {
  52.         this.source = source;
  53.     }
  54.  
  55.     public ObjectId get_id() {
  56.         return _id;
  57.     }
  58.  
  59.     public void set_id(ObjectId _id) {
  60.         this._id = _id;
  61.     }
  62.  
  63.     public Location getLocation() {
  64.         return location;
  65.     }
  66.  
  67.     public void setLocation(Location location) {
  68.         this.location = location;
  69.     }
  70.  
  71.     public String getUserId() {
  72.         return userId;
  73.     }
  74.  
  75.     public void setUserId(String userId) {
  76.         this.userId = userId;
  77.     }
  78.  
  79.     public String getActionType() {
  80.         return actionType;
  81.     }
  82.  
  83.     public void setActionType(String actionType) {
  84.         this.actionType = actionType;
  85.     }
  86.  
  87.     @Override
  88.     public String toString() {
  89.         return "ClassPojo [createTime = " + createTime + ", song = " + song
  90.                 + ", time = " + time + ", source = " + source + ", _id = "
  91.                 + _id + ", location = " + location + ", userId = " + userId
  92.                 + ", actionType = " + actionType + "]";
  93.     }
  94. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement