/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

  1. package com.google.appengine.datanucleus.test;
  2. import java.util.List;
  3. import javax.jdo.annotations.IdGeneratorStrategy;
  4. import javax.jdo.annotations.PersistenceCapable;
  5. import javax.jdo.annotations.Persistent;
  6. import javax.jdo.annotations.PrimaryKey;
  7. import com.google.appengine.api.datastore.Key;
  8. @PersistenceCapable
  9. public class Issue90Parent {
  10. @PrimaryKey
  11. @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
  12. Key id;
  13. String name;
  14. @Persistent
  15. List<Issue90Child> children;
  16. public String getName() {
  17. return name;
  18. }
  19. public void setName(String str) {
  20. this.name = str;
  21. }
  22. public void setChildren(List<Issue90Child> children) {
  23. this.children = children;
  24. }
  25. public List<Issue90Child> getChildren() {
  26. return children;
  27. }
  28. }