- Spring 5.0 By Example
- Claudio Eduardo de Oliveira
- 62字
- 2021-06-24 19:17:34
User
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;
@Data
public class User {
String id;
String identity;
String name;
Role role;
}
推薦閱讀
- SPSS數據挖掘與案例分析應用實踐
- INSTANT Mock Testing with PowerMock
- LabVIEW程序設計基礎與應用
- MySQL 8從入門到精通(視頻教學版)
- INSTANT FreeMarker Starter
- Android 9 Development Cookbook(Third Edition)
- Interactive Applications Using Matplotlib
- PhoneGap Mobile Application Development Cookbook
- Scala Reactive Programming
- Instant Lucene.NET
- Mastering Git
- Mastering AWS Security
- Machine Learning for OpenCV
- 零基礎學SQL(升級版)
- Learning NHibernate 4