hbwf / mybatis

Automatically exported from code.google.com/p/mybatis
0 stars 0 forks source link

Add possibility to set MyBatis properties via Spring context file #679

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What version of the MyBatis are you using?
mybatis-3.1.1
mybatis-spring-1.1.1

Please describe the problem.  Unit tests are best!
At the moment not all MyBatis properties could be set via Spring context file. 
We still need to have mybatis-config.xml. For example, mapUnderscoreToCamelCase.

What is the expected output? What do you see instead?
It would be good to have all configurations in one place only.

Can you provide stack trace, logs, error messages that are displayed?
No errors

Please provide any additional information below.
In the attachment you can find how we resolved this issue using Decorator 
pattern. This class depends on some external libraries (commons-lang, log4j) 
but it can be easy removed/replaced with java core classes.

Original issue reported on code.google.com by e.f.mame...@gmail.com on 26 Sep 2012 at 6:50

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Yes please, it will be nice to support mapUnderscoreToCamelCase and other 
properties.

Original comment by ozhan...@gmail.com on 16 Oct 2013 at 8:31

GoogleCodeExporter commented 9 years ago
Any way I could convince you guys to implement this? Setting this property is 
the only reason I've got mybatis configuration XML files, and I would love to 
do away with them.

Original comment by james.ho...@gmail.com on 9 May 2014 at 3:05