All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.escalon.hypermedia.sample.beans.store.Order Maven / Gradle / Ivy

There is a newer version: 0.4.2
Show newest version
package de.escalon.hypermedia.sample.beans.store;

import de.escalon.hypermedia.hydra.mapping.Expose;
import de.escalon.hypermedia.sample.model.store.OrderStatus;
import org.springframework.hateoas.ResourceSupport;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Dietrich on 17.02.2015.
 */
public class Order extends ResourceSupport {
    private List items = new ArrayList();
    private Offer acceptedOffer;
    private Store seller;
    private OrderStatus orderStatus;

    public void setSeller(Store seller) {
        this.seller = seller;
    }

    public Store getSeller() {
        return seller;
    }


    public void addItem(Product orderedItem) {
        this.items.add(orderedItem);
    }

    @Expose("orderedItem")
    public List getItems() {
        return items;
    }


    public void setOrderStatus(OrderStatus orderStatus) {
        this.orderStatus = orderStatus;
    }

    public OrderStatus getOrderStatus() {
        return orderStatus;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy