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

http://datanucleus-appengine.googlecode.com/ · Java · 47 lines · 35 code · 12 blank · 0 comment · 0 complexity · 44f3fcd7768658ccfce4cceedeb0872e MD5 · raw file

  1. package com.google.appengine.datanucleus.bugs.test;
  2. import javax.jdo.annotations.IdGeneratorStrategy;
  3. import javax.jdo.annotations.PersistenceCapable;
  4. import javax.jdo.annotations.Persistent;
  5. import javax.jdo.annotations.PrimaryKey;
  6. import com.google.appengine.api.datastore.Key;
  7. @PersistenceCapable
  8. public class Issue73Parent {
  9. @PrimaryKey
  10. @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
  11. Key id;
  12. String name;
  13. @Persistent
  14. Issue73Child child1 = null;
  15. @Persistent
  16. Issue73Child child2 = null;
  17. public String getName() {
  18. return name;
  19. }
  20. public void setName(String str) {
  21. this.name = str;
  22. }
  23. public void setChild1(Issue73Child child) {
  24. this.child1 = child;
  25. }
  26. public void setChild2(Issue73Child child) {
  27. this.child2 = child;
  28. }
  29. public Issue73Child getChild1() {
  30. return child1;
  31. }
  32. public Issue73Child getChild2() {
  33. return child2;
  34. }
  35. }