package com.ds.listing.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;


@SuppressWarnings("serial")
@Entity
@Table(uniqueConstraints = @UniqueConstraint(columnNames = "isbn"), name="books")
public class Book implements Serializable {

    @Id
    @GeneratedValue
    @Column(name="book_id")
    private Long id;
    
    @Column(name="isbn", columnDefinition="VARCHAR(13) NOT NULL")
    private String isbn;
    
    @Column(name="asin", columnDefinition="VARCHAR(26) NOT NULL")
    private String asin;
    
    @Column(name="title", columnDefinition="VARCHAR(256) NOT NULL")
    private String title;
    
    @Column(name="author", columnDefinition="VARCHAR(64) NOT NULL")
    private String author;

    @Column(name="hard_cover")
    private boolean hardcover;
    
    private Double depth;
    private Double height;
    private Double width;
    private Double weightMajor;
    private Double weightMinor;
    
    private Date publishDate;
    
    @Lob
    private String imageUrl;
    
    public Long getId(){
        return id;
    }
    public void setId(Long id){
        this.id = id;
    }

    public boolean isHardcover() {
        return hardcover;
    }
    public void setHardcover(boolean hardcover) {
        this.hardcover = hardcover;
    }

    public String getTitle() {
        return title;
    }
    public void setTitle(String title) {
        this.title = title;
    }
    
    public String getAuthor() {
        return author;
    }
    public void setAuthor(String author) {
        this.author = author;
    }
    
    public String getIsbn() {
        return isbn;
    }
    public void setIsbn(String isbn) {
        this.isbn = isbn;
    }

}

@@ -978,22 +978,26 @@
 private 
-Double
+BigDecimal
  depth;%0A
@@ -1008,22 +1008,26 @@
 private 
-Double
+BigDecimal
  height;
@@ -1039,22 +1039,26 @@
 private 
-Double
+BigDecimal
  width;%0A
@@ -1061,38 +1061,42 @@
 th;%0A    private 
-Double
+BigDecimal
  weightMajor;%0A  
@@ -1109,14 +1109,18 @@
 ate 
-Double
+BigDecimal
  wei

Update Book.java