【发布时间】:2014-02-06 02:31:29
【问题描述】:
我正在将日历功能写入 spring mvc 应用程序。我有一个calendar.jsp,它提供了appointments 的视图,而这又与providers 和customers 相关联。
我的底层 MySQL 数据库有 appointments、providers 和 customers 的表。但是calendar 是用户界面的抽象。 Calendar 类在数据库中没有关联表,但 Calendar 类确实有一个 List 的所有 appointments 和一个 list 的所有 providers 等。我使用 @Entity appointments、providers 和 customers 的注释。
Calendar 类应该使用什么 spring 注释?
我需要能够从calendar.jsp 引用calendar.providers 和calendar.appointments 等。
这里是a link to an example of a similar class that uses Roo annotation。
我宁愿避免使用 Roo。能够使用基本的 spring 框架分布会很好。我的应用程序使用 Spring 和 Hibernate。我想避免增加不必要的复杂性。
【问题讨论】:
-
向我们展示您到目前为止所做的工作会很有帮助
标签: java spring spring-mvc