/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. /**********************************************************************
  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 com.google.appengine.api.datastore.Blob;
  15. import com.google.appengine.api.datastore.Text;
  16. import org.datanucleus.api.jpa.annotations.Extension;
  17. import java.util.List;
  18. import javax.persistence.Basic;
  19. import javax.persistence.Entity;
  20. import javax.persistence.GeneratedValue;
  21. import javax.persistence.GenerationType;
  22. import javax.persistence.Id;
  23. /**
  24. * @author Max Ross <maxr@google.com>
  25. */
  26. @Entity
  27. public class HasUnindexedPropertiesJPA {
  28. @Id
  29. @GeneratedValue(strategy= GenerationType.IDENTITY)
  30. private Long id;
  31. @Extension(vendorName = "datanucleus", key = "gae.unindexed", value="true")
  32. private String unindexedString;
  33. @Extension(vendorName = "datanucleus", key = "gae.unindexed", value="true")
  34. private List<String> unindexedList;
  35. @Extension(vendorName = "datanucleus", key = "gae.unindexed", value="true")
  36. @Basic
  37. private Blob unindexedBlob;
  38. @Extension(vendorName = "datanucleus", key = "gae.unindexed", value="true")
  39. @Basic
  40. private Text unindexedText;
  41. @Basic
  42. private Blob blob;
  43. @Basic
  44. private Text text;
  45. public Long getId() {
  46. return id;
  47. }
  48. public String getUnindexedString() {
  49. return unindexedString;
  50. }
  51. public void setUnindexedString(String unindexedString) {
  52. this.unindexedString = unindexedString;
  53. }
  54. public List<String> getUnindexedList() {
  55. return unindexedList;
  56. }
  57. public void setUnindexedList(List<String> unindexedList) {
  58. this.unindexedList = unindexedList;
  59. }
  60. public Blob getUnindexedBlob() {
  61. return unindexedBlob;
  62. }
  63. public void setUnindexedBlob(Blob unindexedBlob) {
  64. this.unindexedBlob = unindexedBlob;
  65. }
  66. public Text getUnindexedText() {
  67. return unindexedText;
  68. }
  69. public void setUnindexedText(Text unindexedText) {
  70. this.unindexedText = unindexedText;
  71. }
  72. public Blob getBlob() {
  73. return blob;
  74. }
  75. public void setBlob(Blob blob) {
  76. this.blob = blob;
  77. }
  78. public Text getText() {
  79. return text;
  80. }
  81. public void setText(Text text) {
  82. this.text = text;
  83. }
  84. }