/src/main/java/com/google/ie/dto/CommentDetail.java

http://thoughtsite.googlecode.com/ · Java · 76 lines · 29 code · 13 blank · 34 comment · 0 complexity · 550f5368f12f56a833556b391a36e66a 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.dto;
  16. import com.google.ie.business.domain.Comment;
  17. import com.google.ie.business.domain.Idea;
  18. import com.google.ie.business.domain.User;
  19. import java.io.Serializable;
  20. /**
  21. * A data transfer object representing the comment information.
  22. *
  23. * @author Charanjeet singh
  24. */
  25. public class CommentDetail implements Serializable {
  26. private static final long serialVersionUID = 1L;
  27. /**
  28. * Comment object.
  29. */
  30. private Comment comment;
  31. private User user;
  32. private Idea idea;
  33. /**
  34. * @param comment the comment to set
  35. */
  36. public void setComment(Comment comment) {
  37. this.comment = comment;
  38. }
  39. /**
  40. * @return the comment
  41. */
  42. public Comment getComment() {
  43. return comment;
  44. }
  45. /**
  46. * @param user the user to set
  47. */
  48. public void setUser(User user) {
  49. this.user = user;
  50. }
  51. /**
  52. * @return the user
  53. */
  54. public User getUser() {
  55. return user;
  56. }
  57. public void setIdea(Idea idea) {
  58. this.idea = idea;
  59. }
  60. public Idea getIdea() {
  61. return idea;
  62. }
  63. }