/* * This is a common dao with basic CRUD operations and is not limited to any * persistent layer implementation * * Copyright (C) 2008 Imran M Yousuf (imyousuf@smartitengineering.com) * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * This library 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 * Lesser General Public License for more details. * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ package com.smartitengineering.dao.impl.hibernate.domain; import com.smartitengineering.domain.AbstractPersistentDTO; import java.util.Date; import java.util.Set; /** * * @author imyousuf */ public class Book extends AbstractPersistentDTO<Book> { private String name; private String isbn; private Date publishDate; private Double price; private Integer quantityInStock; private Publisher publisher; private Set<Author> authors; public boolean isValid() { throw new UnsupportedOperationException("Not supported yet."); } public Set<Author> getAuthors() { return authors; } public void setAuthors(Set<Author> authors) { this.authors = authors; } public String getIsbn() { return isbn; } public void setIsbn(String isbn) { this.isbn = isbn; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Date getPublishDate() { return publishDate; } public void setPublishDate(Date publishDate) { this.publishDate = publishDate; } public Publisher getPublisher() { return publisher; } public void setPublisher(Publisher publisher) { this.publisher = publisher; } public Double getPrice() { return price; } public void setPrice(Double price) { this.price = price; } public Integer getQuantityInStock() { return quantityInStock; } public void setQuantityInStock(Integer quantityInStock) { this.quantityInStock = quantityInStock; } }