blob: 2b5997032d5524f2258b0c7558be5b707262447e (
plain)
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
|
import java.util.ArrayList;
import java.util.List;
import net.wotonomy.web.WOApplication;
public class Application extends WOApplication {
private static final long serialVersionUID = 618161830400238273L;
public List<BlogEntry> blogEntries;
public Application() {
System.out.println("Application()");
}
@Override
public void awake() {
blogEntries = new ArrayList<>();
BlogEntry testEntry1 = new BlogEntry();
testEntry1.setTitle("Hello World");
BlogEntry testEntry2 = new BlogEntry();
testEntry2.setTitle("Goodbye World");
blogEntries.add(testEntry1);
blogEntries.add(testEntry2);
}
}
|