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

http://datanucleus-appengine.googlecode.com/ · Java · 37 lines · 27 code · 10 blank · 0 comment · 0 complexity · ead5cc68c17b0bc04982c55e20e80c04 MD5 · raw file

  1. package com.google.appengine.datanucleus.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 Issue138Parent1 {
  9. @PrimaryKey
  10. @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
  11. Key id;
  12. String name;
  13. @Persistent
  14. Issue138Child child = null;
  15. public String getName() {
  16. return name;
  17. }
  18. public void setName(String str) {
  19. this.name = str;
  20. }
  21. public void setChild(Issue138Child child) {
  22. this.child = child;
  23. }
  24. public Issue138Child getChild() {
  25. return child;
  26. }
  27. }