
package com.uwetrottmann.shopr.algorithm.model;

import java.math.BigDecimal;

/**
 * Represents a item (e.g. clothing item), or one case in the case-base.
 */
public class Item {

    private int id;

    private String name;

    private BigDecimal price;

    private int shop_id;

    private Attributes attrs;

    private double querySimilarity;

    private double quality;

    public int id() {
        return id;
    }

    public Item id(int id) {
        this.id = id;
        return this;
    }

    public String name() {
        return name;
    }

    public Item name(String name) {
        this.name = name;
        return this;
    }

    public BigDecimal price() {
        return price;
    }

    public Item price(BigDecimal price) {
        this.price = price;
        return this;
    }

    public int shopId() {
        return shop_id;
    }

    public Item shopId(int shop_id) {
        this.shop_id = shop_id;
        return this;
    }

    public Attributes attributes() {
        return attrs;
    }

    public Item attributes(Attributes attrs) {
        this.attrs = attrs;
        return this;
    }

    public double querySimilarity() {
        return querySimilarity;
    }

    public Item querySimilarity(double querySimilarity) {
        this.querySimilarity = querySimilarity;
        return this;
    }

    public double quality() {
        return quality;
    }

    public Item quality(double quality) {
        this.quality = quality;
        return this;
    }

}

@@ -249,24 +249,55 @@
 mal price;%0A%0A
+    private String image_url;%0A%0A
     private 
@@ -830,32 +830,199 @@
 rn this;%0A    %7D%0A%0A
+    public String image() %7B%0A        return image_url;%0A    %7D%0A%0A    public Item image(String image_url) %7B%0A        this.image_url = image_url;%0A        return this;%0A    %7D%0A%0A
     public int s

Add image url to item model.