PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 2ms app.codeStats 0ms

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

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