PageRenderTime 321ms CodeModel.GetById 170ms app.highlight 3ms RepoModel.GetById 146ms app.codeStats 0ms

/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
16package com.google.ie.business.domain;
17
18import org.compass.annotations.Searchable;
19import org.compass.annotations.SearchableProperty;
20
21import java.io.Serializable;
22
23import javax.jdo.annotations.IdentityType;
24import javax.jdo.annotations.PersistenceCapable;
25import javax.jdo.annotations.Persistent;
26
27@PersistenceCapable(identityType = IdentityType.APPLICATION, detachable = "true")
28@Searchable(alias = "ProjectComment")
29public class ProjectComment extends Comment implements Serializable {
30
31    /** A unique identifier for the class */
32    private static final long serialVersionUID = 9175950903504085550L;
33
34    /** Key of the project which has this comment */
35    @Persistent
36    @SearchableProperty
37    public String projectKey;
38
39    /**
40     * @return the projectKey
41     */
42    public String getProjectKey() {
43        return projectKey;
44    }
45
46    /**
47     * @param projectKey the projectKey to set
48     */
49    public void setProjectKey(String projectKey) {
50        this.projectKey = projectKey;
51    }
52
53}
54