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

http://datanucleus-appengine.googlecode.com/ · Java · 47 lines · 20 code · 9 blank · 18 comment · 0 complexity · 4f8f6704e84fa949a668229dde5f42bc 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 java.util.List;
  15. import javax.persistence.Embeddable;
  16. /**
  17. * @author Max Ross <maxr@google.com>
  18. */
  19. @Embeddable
  20. public class EmbeddableJPA {
  21. private String embeddedString;
  22. private List<String> multiVal;
  23. public String getEmbeddedString() {
  24. return embeddedString;
  25. }
  26. public void setEmbeddedString(String embeddedString) {
  27. this.embeddedString = embeddedString;
  28. }
  29. public List<String> getMultiVal() {
  30. return multiVal;
  31. }
  32. public void setMultiVal(List<String> multiVal) {
  33. this.multiVal = multiVal;
  34. }
  35. }