|
楼主 |
发表于 2018-6-5 23:21:51
|
显示全部楼层
admin 你好,问题应该是 jeecg中hinbernate 生成的 sql 对于postges中大写列名没有加双引号 导致,jeecg中hinbernate生成的sql 如下:
select this_.ID as ID45_0_, this_.CLASS_NAME as CLASS2_45_0_, this_.CREATE_BY as CREATE3_45_0_, this_.CREATE_DATE as CREATE4_45_0_, this_.CREATE_NAME as CREATE5_45_0_, this_.CRON_EXPRESSION as CRON6_45_0_, this_.IS_EFFECT as IS7_45_0_, this_.IS_START as IS8_45_0_, this_.RUN_SERVER as RUN9_45_0_, this_.RUN_SERVER_IP as RUN10_45_0_, this_.TASK_DESCRIBE as TASK11_45_0_, this_.TASK_ID as TASK12_45_0_, this_.UPDATE_BY as UPDATE13_45_0_, this_.UPDATE_DATE as UPDATE14_45_0_, this_.UPDATE_NAME as UPDATE15_45_0_ from t_s_timetask this_
postgers 根据mysql 转换过来的字段名与mysql一样,列名也是大写的,如postgres从mysql 转换过来的 t_s_timetask表的列名(都为大写)
这个问题的解决办法 能通过 初始化postgres数据库 字段名表名为小写, 或通过配置jeecg的中相应配置让hibernate生成的sql 正常匹配到postgres中的大写的列名吗(因为mysql库的初始脚本中好些表的字段是大写的)?
|
|