It represents a user in our domain model. We have two different profiles, the author who acts as a news writer, and another one is a reviewer who must review the news registered at the portal. Take a look at the following example:
package springfive.cms.domain.models;import lombok.Data;@Datapublic class User { String id; String identity; String name; Role role;}