Ability to build SqlMapClient programmatically without SqlMapConfig.xml file
----------------------------------------------------------------------------
Key: IBATIS-416
URL: https://issues.apache.org/jira/browse/IBATIS-416
Project: iBatis for Java
Issue Type: Improvement
Affects Versions: 2.3.0
Reporter: David Smiley
Priority: Minor
I've looked over Spring's support for iBatis and I observed that I am required
to have the SqlMapConfig.xml file. It'd be nice if SqlMapClientImpl and/or
SqlMapExecutorDelegate had javabean get/set properties so that this could be
programatically constructed (particularly via Spring), thus not requiring the
SqlMapConfig.xml file. At first inspection, it would seem that the delegate
class is already good for this purpose because it has quite a few get/sets, but
then I look at your SqlMapConfigParser class and see the special way that, for
example, defaultStatementTimeout is handled, is not workable for external
programatic configuration. That's just one example. In order to enhance
Spring to not need this xml file, it'll need to dynamically generate it
in-memory to hand it to the builder. Clearly a hack.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.