/src/main/java/com/google/ie/business/domain/IdeaVote.java

http://thoughtsite.googlecode.com/ · Java · 47 lines · 17 code · 9 blank · 21 comment · 0 complexity · c5326ad20ab1ee275383240c08ec49e7 MD5 · raw file

  1. /* Copyright 2010 Google Inc.
  2. *
  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. *
  7. * http://www.apache.org/licenses/LICENSE-2.0
  8. *
  9. * Unless required by applicable law or agreed to in writing, software
  10. * distributed under the License is distributed on an "AS IS" BASIS.
  11. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. * See the License for the specific language governing permissions and
  13. * limitations under the License
  14. */
  15. package com.google.ie.business.domain;
  16. import java.io.Serializable;
  17. import javax.jdo.annotations.IdentityType;
  18. import javax.jdo.annotations.PersistenceCapable;
  19. import javax.jdo.annotations.Persistent;
  20. @PersistenceCapable(identityType = IdentityType.APPLICATION)
  21. public class IdeaVote extends Vote implements Serializable {
  22. /** A unique identifier for the class */
  23. private static final long serialVersionUID = 5469993831097065974L;
  24. @Persistent
  25. private String ideaKey;
  26. /**
  27. * @return the ideaKey
  28. */
  29. public String getIdeaKey() {
  30. return ideaKey;
  31. }
  32. /**
  33. * @param ideaKey the ideaKey to set
  34. */
  35. public void setIdeaKey(String ideaKey) {
  36. this.ideaKey = ideaKey;
  37. }
  38. }