PageRenderTime 6ms CodeModel.GetById 1ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

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

http://datanucleus-appengine.googlecode.com/
Java | 80 lines | 47 code | 15 blank | 18 comment | 0 complexity | 46529a997c5138eb10d5ace6c8758ab4 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.IdGeneratorStrategy;
19import javax.jdo.annotations.IdentityType;
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(identityType = IdentityType.APPLICATION, detachable = "true")
28public class HasOneToOneLongPkJDO {
29  @PrimaryKey
30  @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
31  private Long id;
32
33  public Long getId() {
34    return id;
35  }
36
37  @Persistent(dependent = "true")
38  private Flight flight;
39
40  @Persistent(dependent = "true")
41  private HasKeyPkJDO hasKeyPK;
42
43  @Persistent(dependent = "true")
44  private HasOneToOneLongPkParentJDO hasParent;
45
46  @Persistent(dependent = "true")
47  private HasOneToOneLongPkParentKeyPkJDO hasParentKeyPK;
48
49  public Flight getFlight() {
50    return flight;
51  }
52
53  public void setFlight(Flight flight) {
54    this.flight = flight;
55  }
56
57  public HasKeyPkJDO getHasKeyPK() {
58    return hasKeyPK;
59  }
60
61  public void setHasKeyPK(HasKeyPkJDO hasKeyPK) {
62    this.hasKeyPK = hasKeyPK;
63  }
64
65  public HasOneToOneLongPkParentJDO getHasParent() {
66    return hasParent;
67  }
68
69  public void setHasParent(HasOneToOneLongPkParentJDO hasParent) {
70    this.hasParent = hasParent;
71  }
72
73  public HasOneToOneLongPkParentKeyPkJDO getHasParentKeyPK() {
74    return hasParentKeyPK;
75  }
76
77  public void setHasParentKeyPK(HasOneToOneLongPkParentKeyPkJDO hasParentKeyPK) {
78    this.hasParentKeyPK = hasParentKeyPK;
79  }
80}