package com.example.vsio.criminalintent;

import java.util.UUID;

/**
 * Created by vsio on 16-11-17.
 */

public class Crime {
    private UUID mId;
    private String mTitle;

    public Crime() {
        mId = UUID.randomUUID();
    }

    public UUID getId() {
        return mId;
    }

    public String getTitle() {
        return mTitle;
    }

    public void setTitle(String title) {
        mTitle = title;
    }
}

@@ -35,16 +35,39 @@
 ntent;%0A%0A
+import java.util.Date;%0A
 import j
@@ -81,16 +81,16 @@
 l.UUID;%0A
-
 %0A/**%0A * 
@@ -192,16 +192,69 @@
  mTitle;
+%0A    private Date mDate;%0A    private boolean mSolved;
 %0A%0A    pu
@@ -301,16 +301,44 @@
 UUID();%0A
+        mDate = new Date();%0A
     %7D%0A%0A 
@@ -487,24 +487,24 @@
 ng title) %7B%0A
-
         mTit
@@ -520,11 +520,274 @@
 e;%0A    %7D
+%0A%0A    public Date getDate() %7B%0A        return mDate;%0A    %7D%0A%0A    public void setDate(Date date) %7B%0A        mDate = date;%0A    %7D%0A%0A    public boolean isSolved() %7B%0A        return mSolved;%0A    %7D%0A%0A    public void setSolved(boolean solved) %7B%0A        mSolved = solved;%0A    %7D
 %0A%7D%0A

upgrade class Crime