Building a monolith

To build the monolith, we need to perform the following steps:

  1. First, we need the entities that will represent the data kept by the application. Here is the User entity:
@Entitypublic class User implements Serializable {    private static final long serialVersionUID = 1L;    @Id    @GeneratedValue(strategy = GenerationType.AUTO)    private Long id;        @Column    private String name;        @Column    private String email;    public User(){       }    public User(String name, String email) {        this.name = name;        this.email = email;    }    public Long getId() {        return id;    }    public void setId(Long id) {        this.id = id;    }        public String getName() {        return name;    }    public void setName(String name) {        this.name = name;    }    public String getEmail() {        return email;    } public ...

Get Jakarta EE Cookbook - Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.