PageRenderTime 36ms CodeModel.GetById 16ms RepoModel.GetById 0ms 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
Possible License(s): Apache-2.0
  1. package com.google.appengine.datanucleus.test;
  2. import java.util.ArrayList;
  3. import java.util.List;
  4. import javax.jdo.annotations.IdGeneratorStrategy;
  5. import javax.jdo.annotations.PersistenceCapable;
  6. import javax.jdo.annotations.Persistent;
  7. import javax.jdo.annotations.PrimaryKey;
  8. import com.google.appengine.api.datastore.Key;
  9. @PersistenceCapable
  10. public class Issue138Parent2 {
  11. @PrimaryKey
  12. @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
  13. Key id;
  14. String name;
  15. @Persistent
  16. List<Issue138Child> children = new ArrayList<Issue138Child>();
  17. public String getName() {
  18. return name;
  19. }
  20. public void setName(String str) {
  21. this.name = str;
  22. }
  23. public List<Issue138Child> getChildren() {
  24. return children;
  25. }
  26. }