package com.ds.listing.model;

import javax.persistence.*;
import java.io.Serializable;
import java.util.List;

/**
 * Listings
 * Created by bithack on 3/30/15.
 */

@SuppressWarnings("serial")
@Entity
@Table(name="listings")
public class Listing implements Serializable{
    @Id
    @Column(name="listing_id")
    private Long id;

    @OneToOne(fetch = FetchType.EAGER)
    private Book book;

    @Column(name="ebay_title", columnDefinition = "varchar(80) NOT NULL")
    private String ebayTitle;

    @Column(name="ebay_price")
    private Double ebayPrice;

    @Column(name="ebay_condition_description", columnDefinition = "varchar(80) NOT NULL")
    private String conditionDescription;

    @Column(name = "ebay_condition")
    private int ebayCondition;

    @Column(name="amazon_condition")
    private int amzCondition;

    @Column(name="amazon_price")
    private Double amzPrice;

    @OneToMany(mappedBy = "owner")
    private List<NameValuePair> nvps;

    @Lob
    private String ebayDescription;

    public int getAmzCondition() {
        return amzCondition;
    }

    public void setAmzCondition(int amzCondition) {
        this.amzCondition = amzCondition;
    }

    public String getConditionDescription() {
        return conditionDescription;
    }

    public void setConditionDescription(String conditionDescription) {
        this.conditionDescription = conditionDescription;
    }

    public int getEbayCondition() {
        return ebayCondition;
    }

    public void setEbayCondition(int ebayCondition) {
        this.ebayCondition = ebayCondition;
    }

    public String getEbayDescription() {
        return ebayDescription;
    }

    public void setEbayDescription(String ebayDescription) {
        this.ebayDescription = ebayDescription;
    }

    public List<NameValuePair> getNvps() {
        return nvps;
    }

    public void setNvps(List<NameValuePair> nvps) {
        this.nvps = nvps;
    }

    public Double getAmzPrice() {
        return amzPrice;
    }

    public void setAmzPrice(Double amzPrice) {
        this.amzPrice = amzPrice;
    }

    public Book getBook() {
        return book;
    }

    public void setBook(Book book) {
        this.book = book;
    }

    public Double getEbayPrice() {
        return ebayPrice;
    }

    public void setEbayPrice(Double ebayPrice) {
        this.ebayPrice = ebayPrice;
    }

    public String getEbayTitle() {
        return ebayTitle;
    }

    public void setEbayTitle(String ebayTitle) {
        this.ebayTitle = ebayTitle;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
}

@@ -963,16 +963,274 @@
  nvps;%0A%0A
+    private boolean dustJacket;%0A    private boolean bookClub;%0A    private boolean firstEdition;%0A    private boolean firstPrinting;%0A    private boolean illustrated;%0A    %0A    private int category;%0A    private int storeCategory;%0A    %0A    private int quantity;%0A%0A
     @Lob

Update Listing.java