- 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;
}
推薦閱讀
- 計算機網絡
- Facebook Application Development with Graph API Cookbook
- Learning Java Functional Programming
- Android項目開發入門教程
- 高效微控制器C語言編程
- Ceph Cookbook
- Access 數據庫應用教程
- Interactive Data Visualization with Python
- OpenNI Cookbook
- JavaScript:Moving to ES2015
- Haxe Game Development Essentials
- Scala Reactive Programming
- 打開Go語言之門:入門、實戰與進階
- 零基礎輕松學C++:青少年趣味編程(全彩版)
- C語言從入門到精通