开发者

Reserved SQL keyword 'User' is not permitted as simple type name

开发者 https://www.devze.com 2023-01-27 08:34 出处:网络
Whe开发者_如何学Gon I gave the roo command entity --class~.domain.User in the roo shell, I got Reserved SQL keyword \'User\' is not permitted as simple type name

Whe开发者_如何学Gon I gave the roo command

entity --class  ~.domain.User

in the roo shell, I got

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.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消