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

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

http://thoughtsite.googlecode.com/
Java | 76 lines | 36 code | 13 blank | 27 comment | 0 complexity | 1636b46cf4f7c59c6ba834b3e6fcbbc1 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.SearchableId;
20import org.compass.annotations.SearchableProperty;
21
22import java.io.Serializable;
23
24import javax.jdo.annotations.Extension;
25import javax.jdo.annotations.IdGeneratorStrategy;
26import javax.jdo.annotations.IdentityType;
27import javax.jdo.annotations.PersistenceCapable;
28import javax.jdo.annotations.Persistent;
29import javax.jdo.annotations.PrimaryKey;
30
31@PersistenceCapable(identityType = IdentityType.APPLICATION, detachable = "true")
32@Searchable(alias = "BadWord")
33public class BadWord implements Serializable {
34
35    /** A unique identifier for the class */
36    private static final long serialVersionUID = 8171320030754551639L;
37
38    @PrimaryKey
39    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
40    @Extension(vendorName = "datanucleus", key = "gae.encoded-pk", value = "true")
41    @SearchableId
42    private String key;
43    @Persistent
44    @SearchableProperty
45    private String word;
46
47    /**
48     * @return the key
49     */
50    public String getKey() {
51        return key;
52    }
53
54    /**
55     * @param key the key to set
56     */
57    public void setKey(String key) {
58        this.key = key;
59    }
60
61    /**
62     * @return the word
63     */
64    public String getWord() {
65        return word;
66    }
67
68    /**
69     * @param word the word to set
70     */
71    public void setWord(String word) {
72        this.word = word;
73    }
74
75}
76