该用户从未签到
|
沙发
发表于 2014-04-10 21:37:49
|只看该作者
- package s2.jsp.zhangxiao.entity;
. o! N( K3 |; d1 e# b
l: R- K* _2 \" s, C$ U/ X: G- import java.util.Date;$ h# @, |- G6 O
- / s/ s/ X/ s7 j5 `* z- e
- /**- {0 y- Y3 k0 {$ N# R1 W
- * 实体类" S1 e* R O3 D2 t
- * @author student1) Q- M. x4 x- ?
- *& {; k4 M7 R: _4 g- P
- */
* |- e/ W9 |# {$ l - public class Book {( r. {9 h0 m& p6 @6 H
- // book_id, book_name, book_type, book_publish, book_date' j! c4 J* p& |( p
- private int book_id;
0 r2 q1 [/ [$ C- S - private String book_name;* F8 B9 k( j/ V4 L% W0 D* J
- private String book_type;
$ m8 p5 |' |4 j0 [9 {, ~ - private String book_publish;
3 W6 ~1 t9 b" A8 c& X% r. p) ~ - private String book_date;
( d! P/ a. {8 k: f - public int getBook_id() {
; a) v! `1 e9 W, i! e - return book_id;8 w# L2 W, F" e/ L: C
- }
! c+ i7 T6 f+ a+ N# ?, b - public void setBook_id(int book_id) {' U9 {8 N' B1 I8 x" P
- this.book_id = book_id;) S' h, N- x/ }1 k5 {
- }
* ^" C8 H! z6 i& v - public String getBook_name() {
" j0 A. N) s# x, Y& C - return book_name;$ F/ O7 u/ H* ~9 N0 M, ~2 H
- }" P8 d& v( ]* K( `
- public void setBook_name(String book_name) {5 _& Z. E8 [5 t8 J- E% @( c5 _7 e% d
- this.book_name = book_name;* {1 P4 [2 x; }" ~# X% d- P t O
- }7 s. `8 ` A* s( i
- public String getBook_type() {: T h+ `4 j- ]7 S _, S; t
- return book_type;" Z0 a% Y$ H- y) G. k }
- }
9 e% j# K& m0 ^" d7 Y - public void setBook_type(String book_type) {7 W* l8 X4 j' z* P+ [) J
- this.book_type = book_type;
5 I! `& }2 [5 ?3 m4 i2 z7 p - }
: b1 Z. y9 ^0 h8 s- V% w. C" \6 Z - public String getBook_publish() {
* u# l8 Q) v7 p8 ?' J# _+ U - return book_publish;
1 i$ G8 _. L! ] - }# @% m# K/ d* Z8 s, i
- public void setBook_publish(String book_publish) { m9 ~; R6 |! `0 H4 v& [
- this.book_publish = book_publish;3 r/ E: K# {5 q$ x1 X+ H
- }) F. ^! E- o0 i% B4 u- A
- public String getBook_date() {+ F3 Q: i, Z% X: o" T! |. E+ h
- return book_date;; M$ o' g7 P3 A/ M" m, f" ?/ _
- }! h! _$ _* P# J1 ]
- public void setBook_date(String book_date) {
9 w: K3 h( s# O7 I E - this.book_date = book_date;. Y# o% C1 M' N; D) ?. y
- }% M; ~- J) J7 x8 t8 W
- public Book() { L* T/ U* l E2 u( k
- super();
: A5 n0 n2 e6 B; V - }( W. ` n7 ^; J8 G
- public Book(int book_id, String book_name, String book_type,5 j/ F2 o0 q3 E$ z. [
- String book_publish, String book_date) {
5 L! \5 y. X t9 |, x4 N/ h+ z - super();) k+ K, F, @% R- A
- this.book_id = book_id;) P) d: y( v: C" ~+ h0 v" y9 b
- this.book_name = book_name;
0 t$ L' T8 l$ q T4 Y/ S, E - this.book_type = book_type;
% m5 P$ q! h% M2 W# V* u# a Q - this.book_publish = book_publish;$ r: v8 K r5 P& g+ ?. K. i0 [
- this.book_date = book_date;! h% i5 r9 P8 e" K+ o
- }0 z/ o8 c; k Z5 A5 K
-
& v% U- r" f5 K - }) w1 N8 d: L5 @& Z! _4 S( z
复制代码 + \0 S" p# S2 U9 y6 U3 y9 t
' N$ I- R$ X- B1 B! x |
|