Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

是否有必要单独建立一套do? #7

Open
ghost opened this issue Dec 10, 2020 · 2 comments
Open

是否有必要单独建立一套do? #7

ghost opened this issue Dec 10, 2020 · 2 comments

Comments

@ghost
Copy link

ghost commented Dec 10, 2020

有个疑问,是否还有必要单独建立一套do?
领域建模比较清晰的情况下,基本上领域模型和持久化对象是一致的,不太明白这样设计的用意,望指点

@Sayi
Copy link
Owner

Sayi commented Dec 10, 2020

没必要,如果你使用的是Nosql。
有必要,假设使用的是Mysql。

@Jays769
Copy link

Jays769 commented Sep 13, 2021

有必要,假设使用的是Mysql。

若使用JPA作为聚合的Repo实现,个人认为也不需要

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants