My favorites | Sign in
Project Home Downloads Wiki Issues Source
Checkout   Browse   Changes    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
package guestbook;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.users.User;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class GuestBookEntry {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Long id;

@Persistent
private String content;

@Persistent
private Set<String> fts;

public GuestBookEntry(String content) {
this.content = content;

this.fts = new HashSet<String>();

SearchJanitor.updateFTSStuffForGuestBookEntry(this);
}

public Long getId() {
return id;
}

public String getContent() {
return content;
}

public void setContent(String content) {
this.content = content;
}

public void setFts(Set<String> fts) {
this.fts = fts;
}

public Set<String> getFts() {
return fts;
}
}

Change log

r12 by raphael.andre.bauer on Apr 7, 2010   Diff
spelling mistake
Go to: 
Project members, sign in to write a code review

Older revisions

r3 by raphael.andre.bauer on Apr 7, 2010   Diff
initial checkin
All revisions of this file

File info

Size: 1163 bytes, 54 lines

File properties

svn:mime-type
text/plain
Powered by Google Project Hosting