Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0 Beta 3
-
None
-
In order to have the sqlConfig settings completely set within spring application context, it would help to have a setter function for mappers
Description
It makes sense to have a function in the Configuration class that is called setMappers(List<Class>).
This would enable configuration of all Ibatis settings through aplication context as we can use a collection as a parameter instead of multiple invocations of the addMapper. The code would be trivial as it would just loop through the collection passed to the method and call addMapper on each one.