diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lq/Quote.java | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/lq/Quote.java b/src/lq/Quote.java index 7a65294..b800a4f 100644 --- a/src/lq/Quote.java +++ b/src/lq/Quote.java @@ -12,13 +12,10 @@ import javax.jdo.annotations.PersistenceCapable; import javax.jdo.annotations.Persistent; import javax.jdo.annotations.PrimaryKey; -@PersistenceCapable +@PersistenceCapable(identityType = IdentityType.APPLICATION) public class Quote { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) - private Key key; - - @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Long id; @Persistent @@ -60,7 +57,6 @@ public class Quote { return score; } - public Key getKey() { return key; } public Long getId() { return id; } public Date getTimestamp() { return timestamp; } public Boolean getApproved() { return approved; } @@ -70,7 +66,6 @@ public class Quote { public String getIp() { return ip; } public List<Vote> getVotes() { return votes; } - public void setKey(Key key) { this.key = key; } public void setId(Long id) { this.id = id; } public void setTimestamp(Date timestamp) { this.timestamp = timestamp; } public void setApproved(Boolean approved) { this.approved = approved; } |