且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

3 层架构中的 Spring、Hibernate、Java EE

更新时间:2023-12-05 11:36:34

是的,我会把 Hibernate 放在数据访问层.实际上第三层是数据层"而不是数据访问层,这可能会让您感到困惑.因此,与业务逻辑相关的所有内容都进入应用程序(或业务)层.

Yes, I would put Hibernate in the data access layer. In fact the 3rd layer is the "Data layer" and not the data access layer, maybe this confuses you. So everything that's business logic related goes into the app (or business) layer.