PageRenderTime 567ms CodeModel.GetById 304ms app.highlight 5ms RepoModel.GetById 257ms app.codeStats 0ms

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

http://thoughtsite.googlecode.com/
Java | 104 lines | 56 code | 21 blank | 27 comment | 0 complexity | ff3bb51b181f48c37319bfa12182e1e0 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 java.io.Serializable;
 19import java.util.Date;
 20
 21import javax.jdo.annotations.Extension;
 22import javax.jdo.annotations.IdGeneratorStrategy;
 23import javax.jdo.annotations.IdentityType;
 24import javax.jdo.annotations.PersistenceCapable;
 25import javax.jdo.annotations.Persistent;
 26import javax.jdo.annotations.PrimaryKey;
 27
 28@PersistenceCapable(identityType = IdentityType.APPLICATION, detachable = "true")
 29public class IdeaCategory implements Serializable {
 30
 31    /** A unique identifier for the class */
 32    private static final long serialVersionUID = -3313468527605676463L;
 33
 34    @PrimaryKey
 35    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
 36    @Extension(vendorName = "datanucleus", key = "gae.encoded-pk", value = "true")
 37    private String key;
 38
 39    public String getKey() {
 40        return key;
 41    }
 42
 43    public void setKey(String key) {
 44        this.key = key;
 45    }
 46
 47    @Persistent
 48    private String name;
 49    @Persistent
 50    private String description;
 51    @Persistent
 52    private Date createdOn;
 53
 54    public Date getCreatedOn() {
 55        return createdOn;
 56    }
 57
 58    public void setCreatedOn(Date createdOn) {
 59        this.createdOn = createdOn;
 60    }
 61
 62    public Date getUpdatedOn() {
 63        return updatedOn;
 64    }
 65
 66    public void setUpdatedOn(Date updatedOn) {
 67        this.updatedOn = updatedOn;
 68    }
 69
 70    @Persistent
 71    private Date updatedOn;
 72
 73    public IdeaCategory() {}
 74
 75    /**
 76     * @return the name
 77     */
 78    public String getName() {
 79        return name;
 80    }
 81
 82    /**
 83     * @param name the name to set
 84     */
 85    public void setName(String name) {
 86        this.name = name;
 87    }
 88
 89    /**
 90     * @return the description
 91     */
 92    public String getDescription() {
 93        return description;
 94    }
 95
 96    /**
 97     * @param description the description to set
 98     */
 99    public void setDescription(String description) {
100        this.description = description;
101    }
102
103}
104