diff options
author | Kjetil Ørbekk <orbekk@pvv.ntnu.no> | 2010-09-03 01:11:03 -0400 |
---|---|---|
committer | Kjetil Ørbekk <orbekk@pvv.ntnu.no> | 2010-09-03 01:11:03 -0400 |
commit | b2dd8bf148b70c3076625840f908b5c7d32e9ee1 (patch) | |
tree | 79c06b1a051db27eaec3be859abb3bd6bce3210d /src/lq/Vote.java | |
parent | c0927a7ec954652d411ae4293fb0b1f4edad3a4c (diff) |
Make ImportQuote work on AppEngine.
Saving the entire database in one request caused a timeout. Instead,
save one quote (plus its votes) per request.
Diffstat (limited to 'src/lq/Vote.java')
-rw-r--r-- | src/lq/Vote.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lq/Vote.java b/src/lq/Vote.java index 9b9dca1..65bdf6c 100644 --- a/src/lq/Vote.java +++ b/src/lq/Vote.java @@ -37,9 +37,11 @@ public class Vote { public Quote getQuote() { return quote; } public Date getTimestamp() { return timestamp; } public String getIp() { return ip; } + public Long getRating() { return rating; } public void setKey(Key key) { this.key = key; } public void setQuote(Quote quote) { this.quote = quote; } public void setTimestamp(Date timestamp) { this.timestamp = timestamp; } public void setIp(String ip) { this.ip = ip; } + public void setRating(Long rating) { this.rating = rating; } } |