PageRenderTime 71ms CodeModel.GetById 54ms RepoModel.GetById 1ms app.codeStats 0ms

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

http://datanucleus-appengine.googlecode.com/
Java | 36 lines | 28 code | 8 blank | 0 comment | 0 complexity | 50df484ba13a08e7b20f55aa02aafcf0 MD5 | raw file
Possible License(s): Apache-2.0
  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. @PersistenceCapable
  7. public class Issue62Parent {
  8. @PrimaryKey
  9. @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
  10. private Long id;
  11. @Persistent
  12. private Issue62Child child;
  13. public Issue62Parent(Issue62Child child) {
  14. this.child = child;
  15. }
  16. public Long getId() {
  17. return id;
  18. }
  19. public void setId(Long id) {
  20. this.id = id;
  21. }
  22. public Issue62Child getChild() {
  23. return child;
  24. }
  25. public void setChild(Issue62Child child) {
  26. this.child = child;
  27. }
  28. }