01: /*
02: * Copyright 2004-2006 the original author or authors.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16:
17: package org.compass.sample.library;
18:
19: import java.util.Date;
20:
21: /**
22: *
23: * @author kimchy
24: */
25: public class Book implements Identifiable {
26:
27: private Long id;
28:
29: private String title;
30:
31: private Date publishDate;
32:
33: private String[] keywords;
34:
35: private String summary;
36:
37: public Book() {
38:
39: }
40:
41: public Book(String title, Date publishDate, String summary,
42: String[] keywords) {
43: this .title = title;
44: this .publishDate = publishDate;
45: this .summary = summary;
46: this .keywords = keywords;
47: }
48:
49: public String[] getKeywords() {
50: return keywords;
51: }
52:
53: public void setKeywords(String[] keywords) {
54: this .keywords = keywords;
55: }
56:
57: public Date getPublishDate() {
58: return publishDate;
59: }
60:
61: public void setPublishDate(Date publishDate) {
62: this .publishDate = publishDate;
63: }
64:
65: public String getSummary() {
66: return summary;
67: }
68:
69: public void setSummary(String summary) {
70: this .summary = summary;
71: }
72:
73: public String getTitle() {
74: return title;
75: }
76:
77: public void setTitle(String title) {
78: this .title = title;
79: }
80:
81: public Long getId() {
82: return id;
83: }
84:
85: public void setId(Long id) {
86: this .id = id;
87: }
88:
89: public String toString() {
90: return title;
91: }
92: }
|