Ibatis自动代码生成工具abator遇到的乱码的问题

数据库是sybase
里面的表名和字段名都是中文。
问题1
abator的配置文件格式是utf-8会报错,改成gbk可以
问题2
生成的select 字段名都是乱码,换了很多字符集都不能正常显示。
有没有朋友遇到过我这样的情况?


配置如下:
<table tableName="参数_分局"
domainObjectName="ParaSubStation"
enableSelectByExample="false"
enableDeleteByExample="false" enableCountByExample="false"
enableUpdateByExample="false">
<generatedKey column="Name" sqlStatement="SELECT SELECT @@IDENTITY" identity="false" />
<columnOverride column="分局编码" property="stationId" />
<columnOverride column="分局名称" property="stationName" />
<columnOverride column="系统状态" property="status" />
<columnOverride column="通讯类型" property="commType" />
<columnOverride column="设备通讯地址" property="commAddress" />
<columnOverride column="系统类型" property="systemType" />
<columnOverride column="分局代码" property="subStationCode" />
<columnOverride column="自动统计" property="autoStatistics" />
<columnOverride column="电压等级" property="voltGrade" />
<columnOverride column="统计有功" property="countWattful" />
<columnOverride column="统计无功" property="countReactive" />
<columnOverride column="参与汇总" property="isCollect" />
<columnOverride column="整点统计" property="countAtInterPoint" />
<columnOverride column="日统计" property="countDay" />
<columnOverride column="月统计" property="countMonth" />
<columnOverride column="越限检查" property="checkLimit" />
<columnOverride column="越限指标" property="limitTarget" />
<columnOverride column="自动生成计算公式" property="autoCalFormula" />
</table>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值