1.generator.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE generatorConfiguration PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN" "http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">
<generatorConfiguration>
<classPathEntry location="C:\Users\rocky\.m2\repository\com\oracle\ojdbc6\11.2.0.1.0\ojdbc6-11.2.0.1.0.jar" />
<context />
</table>
</context>
</generatorConfiguration>
2. mybatis-generator-core-1.3.2.jar
3. java -jar mybatis-generator-core-1.3.2.jar -configfile generator.xml -overwrite
4. some problems:
~if the table short of primary key, you maynot generate the right mapper file and interface(only has the insert method).