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

/tests_bugs/com/google/appengine/datanucleus/bugs/test/Issue228Parent.java

http://datanucleus-appengine.googlecode.com/
Java | 35 lines | 26 code | 9 blank | 0 comment | 0 complexity | a3444f05d35966a62fb2c2acebfa1783 MD5 | raw file
 1package com.google.appengine.datanucleus.bugs.test;
 2
 3import java.util.HashSet;
 4import java.util.Set;
 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 Issue228Parent {
15  @PrimaryKey
16  @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
17  Key id;
18
19  String name;
20
21  @Persistent(mappedBy="parent")
22  Set<Issue228Child> children = new HashSet<Issue228Child>();
23
24  public String getName() {
25    return name;
26  }
27
28  public void setName(String str) {
29    this.name = str;
30  }
31
32  public Set<Issue228Child> getChildren() {
33    return children;
34  }
35}