2 * This is a common dao with basic CRUD operations and is not limited to any
3 * persistent layer implementation
5 * Copyright (C) 2008 Imran M Yousuf
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
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
19 package com
.smartitengineering
.dao
.impl
.hibernate
.domain
;
21 import com
.smartitengineering
.domain
.PersistentDTO
;
22 import java
.util
.Date
;
28 public class Publisher
extends PersistentDTO
<Publisher
> {
32 private Date establishedDate
;
34 private int numOfEmployees
;
36 public boolean isValid() {
37 throw new UnsupportedOperationException("Not supported yet.");
40 public Date
getEstablishedDate() {
41 return establishedDate
;
44 public void setEstablishedDate(Date establishedDate
) {
45 this.establishedDate
= establishedDate
;
48 public String
getName() {
52 public void setName(String name
) {
56 public Integer
getNumOfEmployees() {
57 return numOfEmployees
;
60 public void setNumOfEmployees(Integer numOfEmployees
) {
61 if(numOfEmployees
!= null) {
62 this.numOfEmployees
= numOfEmployees
.intValue();
65 this.numOfEmployees
= 0;