OLD | NEW |
(Empty) | |
| 1 package mydemo; |
| 2 |
| 3 import com.google.appengine.api.datastore.Key; |
| 4 import com.google.appengine.api.users.User; |
| 5 |
| 6 import java.util.Date; |
| 7 import javax.jdo.annotations.IdGeneratorStrategy; |
| 8 import javax.jdo.annotations.PersistenceCapable; |
| 9 import javax.jdo.annotations.Persistent; |
| 10 import javax.jdo.annotations.PrimaryKey; |
| 11 |
| 12 @PersistenceCapable |
| 13 public class MstoneInfo { |
| 14 @PrimaryKey |
| 15 @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) |
| 16 private Key key; |
| 17 |
| 18 @Persistent |
| 19 private String mile_stone; |
| 20 |
| 21 @Persistent |
| 22 private Date date; |
| 23 |
| 24 public MstoneInfo(String mile_stone, Date date) { |
| 25 this.mile_stone = mile_stone; |
| 26 this.date = date; |
| 27 } |
| 28 |
| 29 public Key getKey() { |
| 30 return key; |
| 31 } |
| 32 |
| 33 public String getMileStone() { |
| 34 return mile_stone; |
| 35 } |
| 36 |
| 37 public Date getDate() { |
| 38 return date; |
| 39 } |
| 40 |
| 41 public void setMileStone(String mile_stone) { |
| 42 this.mile_stone = mile_stone; |
| 43 } |
| 44 |
| 45 public void setDate(Date date) { |
| 46 this.date = date; |
| 47 } |
| 48 } |
OLD | NEW |