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="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;

    
    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;
    }

}

@@ -604,24 +604,120 @@
  isbn;%0A    %0A
+    @Column(name=%22asin%22, columnDefinition=%22VARCHAR(26) NOT NULL%22)%0A    private String asin;%0A    %0A
     @Column(
@@ -961,16 +961,241 @@
 dcover;%0A
+    %0A    private Double depth;%0A    private Double height;%0A    private Double width;%0A    private Double weightMajor;%0A    private Double weightMinor;%0A    %0A    private Date publishDate;%0A    %0A    @Lob%0A    private String imageUrl;
 %0A    %0A  

Update Book.java