[英]Reserved SQL keyword 'User' is not permitted as simple type name
When I gave the roo command 当我给出了roo命令
entity --class ~.domain.User
in the roo shell, I got 在roo shell中,我得到了
Reserved SQL keyword 'User' is not permitted as simple type name
What I want to know is that, is there a way to gave alias name to the entity ? 我想知道的是,有没有办法为实体提供别名? Because I do have a couple of entities which name are not permitted as above.
因为我确实有几个实体,其名称不允许如上所述。 Or is there a way to overcome this kind of problem ?
或者有办法克服这种问题吗?
Any help will be greatly appreciated. 任何帮助将不胜感激。 Thank you very much.
非常感谢你。
You could try to add the --permitReservedWords
option to the entity command. 您可以尝试将
--permitReservedWords
选项添加到实体命令。
https://jira.springsource.org/browse/ROO-1502 https://jira.springsource.org/browse/ROO-1502
If you want to change the entity name, but keep the table name: 如果要更改实体名称,请保留表名称:
entity --class ~.domain.FooUser --table user
I would think there is a way to quote all sql identifiers, but I don't know that much about Roo. 我认为有一种方法可以引用所有sql标识符,但我对Roo知之甚少。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.