PageRenderTime 9ms CodeModel.GetById 1ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

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

http://datanucleus-appengine.googlecode.com/
Java | 60 lines | 32 code | 10 blank | 18 comment | 0 complexity | e947ee071c846e4875a99502832063bc MD5 | raw file
 1/**********************************************************************
 2Copyright (c) 2009 Google Inc.
 3
 4Licensed under the Apache License, Version 2.0 (the "License");
 5you may not use this file except in compliance with the License.
 6You may obtain a copy of the License at
 7
 8http://www.apache.org/licenses/LICENSE-2.0
 9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15**********************************************************************/
16package com.google.appengine.datanucleus.test;
17
18import javax.jdo.annotations.Extension;
19import javax.jdo.annotations.IdGeneratorStrategy;
20import javax.jdo.annotations.PersistenceCapable;
21import javax.jdo.annotations.Persistent;
22import javax.jdo.annotations.PrimaryKey;
23
24/**
25 * @author Max Ross <maxr@google.com>
26 */
27@PersistenceCapable(detachable = "true")
28public class BidirectionalGrandchildListJDO {
29
30  @PrimaryKey
31  @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
32  @Extension(vendorName = "datanucleus", key = "gae.encoded-pk", value="true")
33  private String id;
34
35  @Persistent
36  private BidirectionalChildListJDO parent;
37
38  @Persistent
39  private String childVal;
40
41  public String getId() {
42    return id;
43  }
44
45  public BidirectionalChildListJDO getParent() {
46    return parent;
47  }
48
49  public void setParent(BidirectionalChildListJDO parent) {
50    this.parent = parent;
51  }
52
53  public String getChildVal() {
54    return childVal;
55  }
56
57  public void setChildVal(String childVal) {
58    this.childVal = childVal;
59  }
60}