![Spring Boot 2.0 Projects](https://wfqqreader-1252317822.image.myqcloud.com/cover/626/36699626/b_36699626.jpg)
上QQ阅读APP看书,第一时间看更新
Class diagram for the domain model
The domain model is the most important part of an application; some applications have run for years on end with multiple frontend technologies but without ever changing the existing domain model. A well-built domain model can easily support multiple business logic and can run an application on limited resources efficiently.
The following is the simple class diagram for this web application:
![](https://epubservercos.yuewen.com/8AED3C/19470390708870606/epubprivate/OEBPS/Images/d68b93dc-3bbb-4fbb-a569-57be24658992.png?sign=1738826242-pk7hNzASuvbF8IFJfwnBOHhA9cfYBXz1-0-7dbb1cf2af63289ead5a1d0aff574079)
There are two main domain models and one enumeration, as shown in the preceding diagram. Those are as follows:
- Comment: This is the main domain model, which will store the actual comment, comment type, comment created date, comment create a user, and so on
- User: This is the domain model, which will store the username, password, and role of a registered user
- CommentType: This enumeration is to differentiate comments by type