Skip to content

Commit feddf83

Browse files
committed
Minor updates for 1.1.1 release
1 parent d6acc94 commit feddf83

File tree

3 files changed

+33
-17
lines changed

3 files changed

+33
-17
lines changed

src/changes/changes.xml

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!-- Copyright 2010-2012 The myBatis Team Licensed under the Apache License,
3-
Version 2.0 (the "License"); you may not use this file except in compliance
4-
with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
5-
Unless required by applicable law or agreed to in writing, software distributed
6-
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
7-
OR CONDITIONS OF ANY KIND, either express or implied. See the License for
8-
the specific language governing permissions and limitations under the License. -->
2+
<!--
3+
Copyright 2010-2012 The myBatis Team
94
10-
<!-- version: $Id: changes.xml 3985 2011-10-25 05:08:54Z eduardo.macarron
11-
$ -->
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
-->
17+
18+
<!-- version: $Id$ -->
1219
<document xmlns="http://maven.apache.org/changes/1.0.0"
1320
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1421
xsi:schemaLocation="http://maven.apache.org/changes/1.0.0 http://maven.apache.org/plugins/maven-changes-plugin/xsd/changes-1.0.0.xsd">
@@ -18,7 +25,16 @@
1825
</properties>
1926

2027
<body>
21-
<release version="1.1.1" date="TBD" description="1.1.1 release">
28+
<release version="1.1.1" date="2012-04-15" description="1.1.1 release">
29+
<action type="fix" issue="553">
30+
2nd level cache consistency with MyBatis-Spring
31+
</action>
32+
<action type="fix" issue="559">
33+
Overriding sqlSessionTemplate in MapperFactoryBean not working in certain circumstances
34+
</action>
35+
<action type="fix" issue="572">
36+
MapperScannerConfigurer causes app initialization problems
37+
</action>
2238
</release>
2339
<release version="1.1.0" date="2012-03-12" description="1.1.0 release">
2440
<action type="fix" issue="449">

src/main/java/org/mybatis/spring/mapper/MapperScannerConfigurer.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public class MapperScannerConfigurer implements BeanDefinitionRegistryPostProces
117117

118118
private String beanName;
119119

120-
private boolean processPropertyHolders;
120+
private boolean processPropertyPlaceHolders;
121121

122122
/**
123123
* This property lets you set the base package for your mapper interface files.
@@ -234,12 +234,12 @@ public void setSqlSessionFactoryBeanName(String sqlSessionFactoryName) {
234234

235235
/**
236236
*
237-
* @since 1.1.0
237+
* @since 1.1.1
238238
*
239-
* @param processPropertyHolders
239+
* @param processPropertyPlaceHolders
240240
*/
241-
public void setProcessPropertyHolders(boolean processPropertyHolders) {
242-
this.processPropertyHolders = processPropertyHolders;
241+
public void setProcessPropertyPlaceHolders(boolean processPropertyPlaceHolders) {
242+
this.processPropertyPlaceHolders = processPropertyPlaceHolders;
243243
}
244244

245245
/**
@@ -273,7 +273,7 @@ public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory)
273273
* {@inheritDoc}
274274
*/
275275
public void postProcessBeanDefinitionRegistry(BeanDefinitionRegistry beanDefinitionRegistry) throws BeansException {
276-
if (this.processPropertyHolders) {
276+
if (this.processPropertyPlaceHolders) {
277277
processPropertyPlaceHolders();
278278
}
279279

src/test/java/org/mybatis/spring/mapper/MapperScannerConfigurerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ public void testScanWithPropertyPlaceholders() {
207207
// use a property placeholder for basePackage
208208
definition.getPropertyValues().removePropertyValue("basePackage");
209209
definition.getPropertyValues().add("basePackage", "${basePackageProperty}");
210-
definition.getPropertyValues().add("processPropertyHolders", true);
210+
definition.getPropertyValues().add("processPropertyPlaceHolders", true);
211211

212212
// also use a property placeholder for an SqlSessionFactory property
213213
// to make sure the configLocation was setup correctly and MapperScanner did not change

0 commit comments

Comments
 (0)