February 2018
Intermediate to advanced
356 pages
9h 10m
English
This class represents news in our domain, for now, it does not have any behaviors. Only properties and getters/setters are exposed; in the future, we will add some behaviors:
package springfive.cms.domain.models;import java.util.Set;import lombok.Data;@Datapublic class News { String id; String title; String content; User author; Set<User> mandatoryReviewers; Set<Review> reviewers; Set<Category> categories; Set<Tag> tags;}
The Review class can be found at GitHub: (https://github.com/PacktPublishing/Spring-5.0-By-Example/tree/master/Chapter02/src/main/java/springfive/cms/domain/models).
As we can see, they are simple Java classes which represent our CMS application domain. It is the heart of our application, and all the domain logic will ...
Read now
Unlock full access