PageRenderTime 6ms CodeModel.GetById 2ms app.highlight 1ms RepoModel.GetById 2ms app.codeStats 0ms

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