PageRenderTime 32ms CodeModel.GetById 17ms 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
Possible License(s): Apache-2.0
  1. /**********************************************************************
  2. Copyright (c) 2009 Google Inc.
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. **********************************************************************/
  13. package com.google.appengine.datanucleus.test;
  14. import java.util.Date;
  15. import java.util.List;
  16. import javax.persistence.Entity;
  17. import javax.persistence.GeneratedValue;
  18. import javax.persistence.GenerationType;
  19. import javax.persistence.Id;
  20. import javax.persistence.Lob;
  21. /**
  22. * @author Max Ross <maxr@google.com>
  23. */
  24. @Entity
  25. public class HasLob {
  26. @Id
  27. @GeneratedValue(strategy= GenerationType.IDENTITY)
  28. private Long id;
  29. @Lob
  30. private String bigString;
  31. @Lob
  32. private byte[] bigByteArray;
  33. @Lob
  34. private List<Date> dateList;
  35. public Long getId() {
  36. return id;
  37. }
  38. public String getBigString() {
  39. return bigString;
  40. }
  41. public void setBigString(String bigString) {
  42. this.bigString = bigString;
  43. }
  44. public byte[] getBigByteArray() {
  45. return bigByteArray;
  46. }
  47. public void setBigByteArray(byte[] bigByteArray) {
  48. this.bigByteArray = bigByteArray;
  49. }
  50. public List<Date> getDateList() {
  51. return dateList;
  52. }
  53. public void setDateList(List<Date> dateList) {
  54. this.dateList = dateList;
  55. }
  56. }