PageRenderTime 31ms CodeModel.GetById 19ms app.highlight 8ms RepoModel.GetById 2ms app.codeStats 0ms

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

http://datanucleus-appengine.googlecode.com/
Java | 112 lines | 69 code | 25 blank | 18 comment | 0 complexity | 5de209db5d9c5fe291039e619ce299e9 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.api.datastore.Blob;
 19import com.google.appengine.api.datastore.Text;
 20
 21import org.datanucleus.api.jpa.annotations.Extension;
 22
 23import java.util.List;
 24
 25import javax.persistence.Basic;
 26import javax.persistence.Entity;
 27import javax.persistence.GeneratedValue;
 28import javax.persistence.GenerationType;
 29import javax.persistence.Id;
 30
 31/**
 32 * @author Max Ross <maxr@google.com>
 33 */
 34@Entity
 35public class HasUnindexedPropertiesJPA {
 36
 37  @Id
 38  @GeneratedValue(strategy= GenerationType.IDENTITY)
 39  private Long id;
 40
 41  @Extension(vendorName = "datanucleus", key = "gae.unindexed", value="true")
 42  private String unindexedString;
 43
 44  @Extension(vendorName = "datanucleus", key = "gae.unindexed", value="true")
 45  private List<String> unindexedList;
 46
 47  @Extension(vendorName = "datanucleus", key = "gae.unindexed", value="true")
 48  @Basic
 49  private Blob unindexedBlob;
 50
 51  @Extension(vendorName = "datanucleus", key = "gae.unindexed", value="true")
 52  @Basic
 53  private Text unindexedText;
 54
 55  @Basic
 56  private Blob blob;
 57
 58  @Basic
 59  private Text text;
 60
 61  public Long getId() {
 62    return id;
 63  }
 64
 65  public String getUnindexedString() {
 66    return unindexedString;
 67  }
 68
 69  public void setUnindexedString(String unindexedString) {
 70    this.unindexedString = unindexedString;
 71  }
 72
 73  public List<String> getUnindexedList() {
 74    return unindexedList;
 75  }
 76
 77  public void setUnindexedList(List<String> unindexedList) {
 78    this.unindexedList = unindexedList;
 79  }
 80
 81  public Blob getUnindexedBlob() {
 82    return unindexedBlob;
 83  }
 84
 85  public void setUnindexedBlob(Blob unindexedBlob) {
 86    this.unindexedBlob = unindexedBlob;
 87  }
 88
 89  public Text getUnindexedText() {
 90    return unindexedText;
 91  }
 92
 93  public void setUnindexedText(Text unindexedText) {
 94    this.unindexedText = unindexedText;
 95  }
 96
 97  public Blob getBlob() {
 98    return blob;
 99  }
100
101  public void setBlob(Blob blob) {
102    this.blob = blob;
103  }
104
105  public Text getText() {
106    return text;
107  }
108
109  public void setText(Text text) {
110    this.text = text;
111  }
112}