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

http://thoughtsite.googlecode.com/ · Java · 54 lines · 21 code · 11 blank · 22 comment · 0 complexity · d3a9d8d3298fda0a92c7a2bd41da3a1b 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 org.compass.annotations.Searchable;
  17. import org.compass.annotations.SearchableProperty;
  18. import java.io.Serializable;
  19. import javax.jdo.annotations.IdentityType;
  20. import javax.jdo.annotations.PersistenceCapable;
  21. import javax.jdo.annotations.Persistent;
  22. @PersistenceCapable(identityType = IdentityType.APPLICATION, detachable = "true")
  23. @Searchable(alias = "ProjectComment")
  24. public class ProjectComment extends Comment implements Serializable {
  25. /** A unique identifier for the class */
  26. private static final long serialVersionUID = 9175950903504085550L;
  27. /** Key of the project which has this comment */
  28. @Persistent
  29. @SearchableProperty
  30. public String projectKey;
  31. /**
  32. * @return the projectKey
  33. */
  34. public String getProjectKey() {
  35. return projectKey;
  36. }
  37. /**
  38. * @param projectKey the projectKey to set
  39. */
  40. public void setProjectKey(String projectKey) {
  41. this.projectKey = projectKey;
  42. }
  43. }