PageRenderTime 19ms CodeModel.GetById 16ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

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

http://datanucleus-appengine.googlecode.com/
Java | 45 lines | 21 code | 6 blank | 18 comment | 0 complexity | c5adfcd1d3e37ca7c9e576e2a4a008f7 MD5 | raw file
 1/**********************************************************************
 2Copyright (c) 2011 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.PersistenceCapable;
20import javax.jdo.annotations.Persistent;
21import javax.jdo.annotations.PrimaryKey;
22
23/**
24 * "Non-owner" of a 1-N unidirectional relation in JDO, using unowned relations.
25 */
26@PersistenceCapable(detachable="true")
27public class UnownedJDOOneToManyUniSideB {
28  @PrimaryKey
29  @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
30  private Long id;
31
32  private String name;
33
34  public Long getId() {
35    return id;
36  }
37
38  public void setName(String name) {
39    this.name = name;
40  }
41
42  public String getName() {
43    return name;
44  }
45}