Skip to content

Instantly share code, notes, and snippets.

@shin1ogawa
Created July 22, 2010 16:16
Show Gist options
  • Save shin1ogawa/486182 to your computer and use it in GitHub Desktop.
Save shin1ogawa/486182 to your computer and use it in GitHub Desktop.
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