- 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;
}
推薦閱讀
- 小程序實戰視頻課:微信小程序開發全案精講
- FreeSWITCH 1.8
- Docker技術入門與實戰(第3版)
- Visual FoxPro程序設計教程(第3版)
- ASP.NET動態網頁設計教程(第三版)
- Bootstrap 4:Responsive Web Design
- C語言程序設計學習指導與習題解答
- C語言程序設計同步訓練與上機指導(第三版)
- Mastering JavaScript High Performance
- 零基礎入門學習Python(第2版)
- Express Web Application Development
- Learning Unreal Engine Android Game Development
- UML基礎與Rose建模實用教程(第三版)
- Java EE 7 Development with WildFly
- JavaScript高級程序設計(第4版)