/*
Ochan - image board/anonymous forum
Copyright (C) 2010 David Seymore
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package org.ochan.dpl;
import java.io.Serializable;
import com.sleepycat.persist.model.Entity;
import com.sleepycat.persist.model.PrimaryKey;
import com.sleepycat.persist.model.Relationship;
import com.sleepycat.persist.model.SecondaryKey;
@Entity(version=1)
public class CategoryDPL implements Serializable{
/**
* Generated Serial Ver. ID
*/
private static final long serialVersionUID = -2736914815724878570L;
@PrimaryKey(sequence = "CATEGORY")
private Long identifier;
private String name;
private String description;
@SecondaryKey(relate=Relationship.ONE_TO_ONE)
private String code;
/**
* @return the identifier
*/
public Long getIdentifier() {
return identifier;
}
/**
* @return the name
*/
public String getName() {
return name;
}
/**
* @param name the name to set
*/
public void setName(String name) {
this.name = name;
}
/**
* @return the description
*/
public String getDescription() {
return description;
}
/**
* @param description the description to set
*/
public void setDescription(String description) {
this.description = description;
}
/**
* @return the code
*/
public String getCode() {
return code;
}
/**
* @param code the code to set
*/
public void setCode(String code) {
this.code = code;
}
/**
* @param identifier the identifier to set
*/
public void setIdentifier(Long identifier) {
this.identifier = identifier;
}
}
|