mybatis + oracle 逆向工程
generatorConfig.xml 主要配置项
数据库驱动位置:<classPathEntry location="C:/xxx/xxx/xx.jar"/>
数据库连接配置:<jdbcConnection...
生成表配置:
<table tableName="表名" domainObjectName="要生成Model名"
schema="用户名" catalog="表空间"
enableCountByExample="false" enableUpdateByExample="false"
enableDeleteByExample="false" enableSelectByExample="false"
selectByExampleQueryId="false">
</table>
注意
配置网上都能查到,如果生成表失败,请注意异常信息,如:
[WARNING] Table configuration with catalog null, schema public, and table Xxx did not resolve to any tables