PageRenderTime 12ms CodeModel.GetById 1ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 1ms

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

http://datanucleus-appengine.googlecode.com/
Java | 46 lines | 21 code | 7 blank | 18 comment | 0 complexity | abdbfa90b8bd47017ebafd00d19b57c3 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 com.google.appengine.datanucleus.Utils;
19
20import java.util.List;
21
22import javax.jdo.annotations.IdGeneratorStrategy;
23import javax.jdo.annotations.PersistenceCapable;
24import javax.jdo.annotations.Persistent;
25import javax.jdo.annotations.PrimaryKey;
26
27/**
28 * @author Max Ross <maxr@google.com>
29 */
30@PersistenceCapable(detachable = "true")
31public class HasChildWithSeparateNameFieldJDO {
32  @PrimaryKey
33  @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
34  private Long id;
35
36  @Persistent
37  List<HasEncodedStringPkSeparateNameFieldJDO> children = Utils.newArrayList();
38
39  public Long getId() {
40    return id;
41  }
42
43  public List<HasEncodedStringPkSeparateNameFieldJDO> getChildren() {
44    return children;
45  }
46}