PageRenderTime 6ms CodeModel.GetById 1ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/tests/com/google/appengine/datanucleus/test/Issue90Parent.java

http://datanucleus-appengine.googlecode.com/
Java | 38 lines | 28 code | 10 blank | 0 comment | 0 complexity | 850ecc12145e95069541c87943acff7b MD5 | raw file
 1package com.google.appengine.datanucleus.test;
 2
 3import java.util.List;
 4
 5import javax.jdo.annotations.IdGeneratorStrategy;
 6import javax.jdo.annotations.PersistenceCapable;
 7import javax.jdo.annotations.Persistent;
 8import javax.jdo.annotations.PrimaryKey;
 9
10import com.google.appengine.api.datastore.Key;
11
12@PersistenceCapable
13public class Issue90Parent {
14  @PrimaryKey
15  @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
16  Key id;
17
18  String name;
19
20  @Persistent
21  List<Issue90Child> children;
22
23  public String getName() {
24    return name;
25  }
26
27  public void setName(String str) {
28    this.name = str;
29  }
30
31  public void setChildren(List<Issue90Child> children) {
32    this.children = children;
33  }
34
35  public List<Issue90Child> getChildren() {
36    return children;
37  }
38}