HibernateTemplate in spring orm 4.0.6 is missing saveOrUpdateAll

…衆ロ難τιáo~ 提交于 2019-12-11 10:43:11

问题


I am trying to migrate our app from spring 2.5.6 to recent version of spring which is 4.0.6. One of the issues I faced is HibernateTemplate is missing saveOrUpdateAll. I could change it manually but I need to change it close 200 files. I don't know why Spring removed it instead of deprecating it. Anyone have workaround for this? I believe this is the starting of painful migration.


回答1:


From Spring 2.5 to 4.0 is quite a big jump. And Spring DID deprecate that method. If you look at the API for Spring 3, that method has been marked as deprecated and removed completely in Spring 4. Even more, in Spring 2.5 it was, also, deprecated, see here.

So, in your Spring 2.5.6 project you were already using a deprecated method.



来源:https://stackoverflow.com/questions/25296615/hibernatetemplate-in-spring-orm-4-0-6-is-missing-saveorupdateall

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!