不知道这个标题大家清楚不。在使用 Spring MVC 时,我们只能有一个 Command Object 去绑定页面上的数据,这显然有局限性。虽然我们可以将 Entity Bean 作为参数加入到一个 Top Level 的 Command Object,从而支持多 Object 的数据绑定,但也不灵活,是吧。Spring MVC 可以做的更灵活些。
我自己曾改过 Spring MVC 的源码(BindStatus),使其可以更灵活地绑定数据。但 Spring 本身提供支持会更好。
我在 Spring JIRA 上提了这个问题,Spring 3.0 的 MV ...
SessionFactory.getCurrentSession() 是 Hibernate 应用获取 Session
的常用方法。在调用该方法时,Hibernate 会从 interface CurrentSessionContext 获取当前的
Session,这是Hibernate 在不同组件中传递 Session 的方法。
CurrentSessionContext 有三个实现,分别是
ThreadLocalSessionContext、JTASessionContext 和
ManagedSessionContext。ThreadLocalSessionContext ...
- 15:45
- 浏览 (154)
- 评论 (0)
- 分类: Hibernate
- 发布在 JBoss SEAM 圈子
- 浏览: 8704 次
- 性别:

- 来自: 北京

- 详细资料
搜索本博客
我的相册
BPMS 架构
共 1 张
共 1 张
最近加入圈子
最新评论
-
灵活一点的 Spring MVC 的 ...
2.0以后的spring带这类功能
-- by codger -
使 Spring MVC tags 支持 ...
form 没有 path 属性。后来在使用中发现,修改后的代码不能将表单中的值正 ...
-- by SSailYang -
使 Spring MVC tags 支持 ...
还是不明白,你的意思是<form:form> 不写成 <form:f ...
-- by kidd3166 -
也谈算法的重要性
...
-- by ryuluck -
看了看《Seam in Action》 ...
期待
-- by 打倒小日本






评论排行榜