public CartItem() {
            // TODO Auto-generated constructor stub
        }

     

        public CartItem(Book book) {
            super();
            this.book = book;
            this.quantity = 1;
            this.totalPrice = book.getUnitPrice();
        } 

     

        public Book getBook() {
            return book;
        }
    
        public void setBook(Book book) {
            this.book = book;
            this.updateTotalPrice();
        }
    
        public int getQuantity() {
            return quantity;
        }
    
        public void setQuantity(int quantity) {
            this.quantity = quantity;
            this.updateTotalPrice();
        }
    
        public int getTotalPrice() {
            return totalPrice;
        }

     

    신간 소식 구독하기
    뉴스레터에 가입하시고 이메일로 신간 소식을 받아 보세요.