问题
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