mybatis从mysql用于指定生成实体类时是否使用实际的列名作为实体类的属性名

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/yongjiutongmi53151/article/details/86737128

<table schema="test" tableName="employee" domainObjectName="EmployeeItem"
            mapperName="IEmployeeDao" enableCountByExample="false"
            enableUpdateByExample="false" enableDeleteByExample="false"
            enableSelectByExample="false" selectByExampleQueryId="false">
         
        <!--     useActualColumnNames用于指定生成实体类时是否使用实际的列名作为实体类的属性名,去掉就不会去掉数据库中的下划线等不必要内容  -->
            <property name="useActualColumnNames" value="true" />  
        
            <generatedKey column="Id" sqlStatement="mysql" identity="true" />
             <columnOverride column="is_use_password" property="usePassword" /> 
              <ignoreColumn  column="FRED" />
        </table>

猜你喜欢

转载自blog.csdn.net/yongjiutongmi53151/article/details/86737128
今日推荐