保留的 SQL 关键字“User”不允许作为简单类型名称
发出 roo 命令时
entity --class ~.domain.User
当我在 roo shell 中
Reserved SQL keyword 'User' is not permitted as simple type name
,我想知道的是,有没有办法为实体提供别名?因为我确实有几个实体,其名称如上所述是不允许的。或者有没有办法克服这种问题?
任何帮助将不胜感激。非常感谢。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以尝试将
--permitReservedWords
选项添加到实体命令中。https://jira.springsource.org/browse/ROO-1502
You could try to add the
--permitReservedWords
option to the entity command.https://jira.springsource.org/browse/ROO-1502
如果你想更改实体名称,但保留表名称:
我认为有一种方法可以引用所有sql标识符,但我对Roo不太了解。
If you want to change the entity name, but keep the table name:
I would think there is a way to quote all sql identifiers, but I don't know that much about Roo.