1 /* 2 * The SmartWeb Framework 3 * Copyright (C) 2004-2006 4 * 5 * This library is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU Lesser General Public 7 * License as published by the Free Software Foundation; either 8 * version 2.1 of the License, or (at your option) any later version. 9 * 10 * This library is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * Lesser General Public License for more details. 14 * 15 * You should have received a copy of the GNU Lesser General Public 16 * License along with this library; if not, write to the Free Software 17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 18 * 19 * For further informations on the SmartWeb Framework please visit 20 * 21 * http://smartweb.sourceforge.net 22 */ 23 24 25 package net.smartlab.web.news; 26 27 import java.util.Date; 28 29 import net.smartlab.web.BusinessObject; 30 31 /** 32 * TODO documentation 33 * @author rlogiacco 34 * @hibernate.class schema="news" table="`article`" 35 */ 36 public class Article extends BusinessObject { 37 38 private final static long serialVersionUID = -5334663497776831863L; 39 40 /** 41 * TODO documentation 42 * @uml.property name="id" 43 */ 44 private long id; 45 46 /** 47 * TODO documentation Comment for <code>title</code> 48 * @uml.property name="title" 49 */ 50 private String title; 51 52 /** 53 * TODO documentation Comment for <code>body</code> 54 * @uml.property name="body" 55 */ 56 private String body; 57 58 /** 59 * TODO documentation Comment for <code>published</code> 60 * @uml.property name="published" 61 */ 62 private Date published; 63 64 /** 65 * @return 66 * @hibernate.id column="`id`" unsaved-value="0" generator-class="native" 67 * @uml.property name="id" 68 */ 69 public long getId() { 70 return id; 71 } 72 73 /** 74 * @param id 75 * @uml.property name="id" 76 */ 77 public void setId(long id) { 78 this.id = id; 79 } 80 81 /** 82 * @return Returns the title. 83 * @hibernate.property column="`title`" length="255" not-null="true" 84 * @uml.property name="title" 85 */ 86 public String getTitle() { 87 return title; 88 } 89 90 /** 91 * @param title The title to set. 92 * @uml.property name="title" 93 */ 94 public void setTitle(String title) { 95 this.title = title; 96 } 97 98 /** 99 * @return Returns the body. 100 * @hibernate.property column="`body`" type="clob" not-null="true" 101 * @uml.property name="body" 102 */ 103 public String getBody() { 104 return body; 105 } 106 107 /** 108 * @param body The body to set. 109 * @uml.property name="body" 110 */ 111 public void setBody(String body) { 112 this.body = body; 113 } 114 115 /** 116 * @return Returns the publish date. 117 * @hibernate.property column="`published`" not-null="false" 118 * @uml.property name="published" 119 */ 120 public Date getPublished() { 121 return published; 122 } 123 124 /** 125 * @param published The publish date to set. 126 * @uml.property name="published" 127 */ 128 public void setPublished(Date published) { 129 this.published = published; 130 } 131 }