/* * Copyright (c) 2011-2014 Jeppetto and Jonathan Thompson * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.iternine.jeppetto.dao.test.examples.forum; public class Forum { //------------------------------------------------------------- // Variables - Private //------------------------------------------------------------- private String name; private String category; private int threads; private int messages; private int views; //------------------------------------------------------------- // Constructors //------------------------------------------------------------- public Forum() { } public Forum(String name, String category, int threads, int messages, int views) { this.name = name; this.category = category; this.threads = threads; this.messages = messages; this.views = views; } //------------------------------------------------------------- // Methods - Getter/Setter //------------------------------------------------------------- public String getName() { return name; } public void setName(String name) { this.name = name; } public String getCategory() { return category; } public void setCategory(String category) { this.category = category; } public int getThreads() { return threads; } public void setThreads(int threads) { this.threads = threads; } public int getMessages() { return messages; } public void setMessages(int messages) { this.messages = messages; } public int getViews() { return views; } public void setViews(int views) { this.views = views; } }