61 lines
1.4 KiB
Java
61 lines
1.4 KiB
Java
package com.baeldung.persistence.model;
|
|
|
|
import java.util.Map;
|
|
|
|
import org.springframework.hateoas.ResourceSupport;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
|
|
|
@JsonInclude(Include.NON_NULL)
|
|
public class Customer extends ResourceSupport {
|
|
private String customerId;
|
|
private String customerName;
|
|
private String companyName;
|
|
private Map<String, Order> orders;
|
|
|
|
public Customer() {
|
|
super();
|
|
}
|
|
|
|
public Customer(final String customerId, final String customerName, final String companyName) {
|
|
super();
|
|
this.customerId = customerId;
|
|
this.customerName = customerName;
|
|
this.companyName = companyName;
|
|
}
|
|
|
|
public String getCustomerId() {
|
|
return customerId;
|
|
}
|
|
|
|
public void setCustomerId(final String customerId) {
|
|
this.customerId = customerId;
|
|
}
|
|
|
|
public String getCustomerName() {
|
|
return customerName;
|
|
}
|
|
|
|
public void setCustomerName(final String customerName) {
|
|
this.customerName = customerName;
|
|
}
|
|
|
|
public String getCompanyName() {
|
|
return companyName;
|
|
}
|
|
|
|
public void setCompanyName(final String companyName) {
|
|
this.companyName = companyName;
|
|
}
|
|
|
|
public Map<String, Order> getOrders() {
|
|
return orders;
|
|
}
|
|
|
|
public void setOrders(final Map<String, Order> orders) {
|
|
this.orders = orders;
|
|
}
|
|
|
|
}
|