We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
使用
CREATE TABLE 'sys_user_info' ( 'userId' int(11) NOT NULL AUTO_INCREMENT COMMENT '用户编号', ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户信息'
column name是userId不是user_id
userId
user_id
@Id @GeneratedValue /** * 用户编号 */ @Column(name="userid") private Integer userid;
期望得到的是userId,而不是全小写的userid
userid
The text was updated successfully, but these errors were encountered:
源码在方法com.softdev.system.generator.util.TableParseUtil#processTableIntoClassInfo
com.softdev.system.generator.util.TableParseUtil#processTableIntoClassInfo
中的
//deal with special character tableSql = tableSql.trim().replaceAll("'", "`").replaceAll("\"", "`").replaceAll(",", ",").toLowerCase();
将整个DDL转为了小写,所以userId在这里被转为了userid
请问这里设计的初衷是?
Sorry, something went wrong.
No branches or pull requests
复现步骤
1. 使用特定的DDL
使用
column name是
userId
不是user_id
2. web界面点击
3. 查看生成的代码
期望得到的是
userId
,而不是全小写的userid
The text was updated successfully, but these errors were encountered: