/tests_bugs/com/google/appengine/datanucleus/bugs/test/Issue228Parent.java
http://datanucleus-appengine.googlecode.com/ · Java · 35 lines · 26 code · 9 blank · 0 comment · 0 complexity · a3444f05d35966a62fb2c2acebfa1783 MD5 · raw file
- package com.google.appengine.datanucleus.bugs.test;
- import java.util.HashSet;
- import java.util.Set;
- import javax.jdo.annotations.IdGeneratorStrategy;
- import javax.jdo.annotations.PersistenceCapable;
- import javax.jdo.annotations.Persistent;
- import javax.jdo.annotations.PrimaryKey;
- import com.google.appengine.api.datastore.Key;
- @PersistenceCapable
- public class Issue228Parent {
- @PrimaryKey
- @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
- Key id;
- String name;
- @Persistent(mappedBy="parent")
- Set<Issue228Child> children = new HashSet<Issue228Child>();
- public String getName() {
- return name;
- }
- public void setName(String str) {
- this.name = str;
- }
- public Set<Issue228Child> getChildren() {
- return children;
- }
- }