MyBatis: rename Example classes to Criteria.
authorGustavo Martin Morcuende <gustavo@supergusarapo.(none)>
Wed, 28 Aug 2013 11:06:21 +0000 (13:06 +0200)
committerGustavo Martin Morcuende <gustavo@supergusarapo.(none)>
Wed, 28 Aug 2013 11:06:21 +0000 (13:06 +0200)
MyBatis/src/main/resources/generator/generatorConfig.xml

index 90a6124..0582af1 100644 (file)
     <classPathEntry location="/home/gustavo/.m2/repository/mysql/mysql-connector-java/5.1.9/mysql-connector-java-5.1.9.jar" />
 
     <context id="MySQLTables" targetRuntime="MyBatis3">
+
+        <plugin type="org.mybatis.generator.plugins.RenameExampleClassPlugin">
+            <property name="searchString" value="Example$"/>
+            <property name="replaceString" value="Criteria"/>
+        </plugin>
+
         <commentGenerator>
             <property name="suppressAllComments" value="false" />
             <property name="suppressDate" value="false" />