Created
July 22, 2010 16:16
-
-
Save shin1ogawa/486182 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.shin1ogawa.model; | |
import java.io.Serializable; | |
import java.util.Date; | |
import org.slim3.datastore.Attribute; | |
import org.slim3.datastore.Model; | |
import com.google.appengine.api.datastore.Key; | |
@Model(kind = "buzz") | |
public class BuzzActivity implements Serializable { | |
private static final long serialVersionUID = -7133080152735096368L; | |
@Attribute(primaryKey = true) | |
private Key key; | |
@Attribute(lob = true, name = "b") | |
private String body; | |
@Attribute(name = "at") | |
private Date createdAt = new Date(); | |
public Key getKey() { | |
return key; | |
} | |
public void setKey(Key key) { | |
this.key = key; | |
} | |
public String getBody() { | |
return body; | |
} | |
public void setBody(String body) { | |
this.body = body; | |
} | |
public void setCreatedAt(Date createdAt) { | |
this.createdAt = createdAt; | |
} | |
public Date getCreatedAt() { | |
return createdAt; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment