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

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

http://datanucleus-appengine.googlecode.com/
Java | 73 lines | 41 code | 14 blank | 18 comment | 0 complexity | 5c2e8d10ad07eb127856ec04d1b27dcb 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 java.util.Date;
19import java.util.List;
20
21import javax.persistence.Entity;
22import javax.persistence.GeneratedValue;
23import javax.persistence.GenerationType;
24import javax.persistence.Id;
25import javax.persistence.Lob;
26
27/**
28 * @author Max Ross <maxr@google.com>
29 */
30@Entity
31public class HasLob {
32
33  @Id
34  @GeneratedValue(strategy= GenerationType.IDENTITY)
35  private Long id;
36
37  @Lob
38  private String bigString;
39
40  @Lob
41  private byte[] bigByteArray;
42
43  @Lob
44  private List<Date> dateList;
45
46  public Long getId() {
47    return id;
48  }
49
50  public String getBigString() {
51    return bigString;
52  }
53
54  public void setBigString(String bigString) {
55    this.bigString = bigString;
56  }
57
58  public byte[] getBigByteArray() {
59    return bigByteArray;
60  }
61
62  public void setBigByteArray(byte[] bigByteArray) {
63    this.bigByteArray = bigByteArray;
64  }
65
66  public List<Date> getDateList() {
67    return dateList;
68  }
69
70  public void setDateList(List<Date> dateList) {
71    this.dateList = dateList;
72  }
73}