mvc视图对象最佳实践
我们目前正在研究 MVC 概念证明,并努力确定处理需要连接两个来源的信息“视图”的最佳方法。 (主要是 Oracle ADF)
因此,例如,如果您有员工、部门、财产和财产位置,最好通过视图链接、只读 SQL 视图对象等在数据库中创建所需的视图。
在这种情况下您要更新信息,在实体之间创建关联是有意义的,但在大多数情况下,我们需要的只是关系中的信息。
任何想法/评论/建议将不胜感激。
We are currently working on an MVC proof of concept and are struggling with trying to decide what would be the best approach for dealing with "views" of information where we need to join two sources. (Primarily Oracle ADF)
So for example if you have employees, departments, property and property location would it be better to create the views you need in the DB, by View Link, by Read-Only SQL View Object, etc.
In the case where you would be updating information creating an association between entities would make sense, but in most of our scenarios all we need is the information from the relationship(s).
Any thoughts / comments /advice would be appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于等连接的关联,最好在数据库中进行。
对于主从模型,您需要在 ADF 中的 VO 之间创建链接。
这是必需的,以便 JSF/ADF Faces 组件可以正确连接到分层或结构化数据控件(表、树等)
for associations that are equ-joins, then doing it in the database is preferred.
For master-detail models, you will want to create a link between the VO in ADF.
This is needed so that the JSF/ADF Faces components can connect to the hierarchical or structured data controls properly (tables, tress, etc)