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

ドメインオブジェクトにおけるフレームワークコンポーネントの参照の是非 #107

Closed
ecormaksin opened this issue Oct 5, 2019 · 2 comments

Comments

@ecormaksin
Copy link
Contributor

import org.springframework.format.annotation.DateTimeFormat;

ドメインオブジェクトであるDateがSpringFrameworkのアノテーションを参照するとPOJOではなくなるような気がするのですが、問題ないのでしょうか。

@masuda220
Copy link
Contributor

はい。
記述内容として、意図が明確なので、特にPOJOでない、といことを問題だと考えたことはないです。
バリデーションのアノテーションなども、Java の標準ではないHibernateのものも使っています。
どちらも、Javaのアプリケーションの開発技術としては、標準ライブラリに準ずる存在と評価しているので、特殊な外部ライブラリに依存しているとは考えていないです。

@ecormaksin
Copy link
Contributor Author

ご回答ありがとうございます。承知しました。

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