A category model for our CMS application can be used to group the news. Also, the other important thing is that this makes our news categorized to make the search task easy. Take a look at the following code:
package springfive.cms.domain.models;import lombok.Data;@Datapublic class Category { String id; String name;}