The user address microservice

The UserAddress classes will suffer just a single change from the monolith version, but keep their original APIs (that is great from the point of view of the client).

Here is the UserAddress entity:

@Entitypublic class UserAddress implements Serializable {    private static final long serialVersionUID = 1L;    @Id    @GeneratedValue(strategy = GenerationType.AUTO)    private Long id;    @Column    private Long idUser;        @Column    private String street;        @Column    private String number;        @Column    private String city;        @Column    private String zip;        public UserAddress(){            }        public UserAddress(Long user, String street, String number,                        String city, String zip) {        this.idUser = user;        this.street = street;        this.number = number; this.city = ...

Get Java EE 8 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.