Time for action – implementing the order-processing service
We will start with implementing our order processing backend service first. We proceed as follows:
- Create a class named
Address
under thecom.packt.webstore.domain
package in the source foldersrc/main/java
and add the following code into it. Note that I have skipped the getters, setters, equals, and hashcode methods in the following snippet. Please do add those when you create this class:package com.packt.webstore.domain; import java.io.Serializable; public class Address implements Serializable{ private static final long serialVersionUID = -530086768384258062L; private String doorNo; private String streetName; private String areaName; private String state; private String country; private String zipCode; // add getters and setters for all the fields here. // Override equals and hashCode based on all the fields. // the code for the same is available in the code bundle which can be downloaded from...