/tests/com/google/appengine/datanucleus/test/Issue62Parent.java
Java | 36 lines | 28 code | 8 blank | 0 comment | 0 complexity | 50df484ba13a08e7b20f55aa02aafcf0 MD5 | raw file
Possible License(s): Apache-2.0
- package com.google.appengine.datanucleus.test;
- import javax.jdo.annotations.IdGeneratorStrategy;
- import javax.jdo.annotations.PersistenceCapable;
- import javax.jdo.annotations.Persistent;
- import javax.jdo.annotations.PrimaryKey;
- @PersistenceCapable
- public class Issue62Parent {
- @PrimaryKey
- @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
- private Long id;
-
- @Persistent
- private Issue62Child child;
-
- public Issue62Parent(Issue62Child child) {
- this.child = child;
- }
- public Long getId() {
- return id;
- }
- public void setId(Long id) {
- this.id = id;
- }
- public Issue62Child getChild() {
- return child;
- }
- public void setChild(Issue62Child child) {
- this.child = child;
- }
- }