Reserved SQL keyword "User" is not resolved as a simple type name

When I gave the roo command

entity --class ~.domain.User 

in roo shell i got

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

What I want to know is if there is a way to give an alias to the name of the entity? Because I have several objects whose names are not resolved, as indicated above. Or is there a way to overcome this problem?

Any help would be greatly appreciated. Thank you very much.

+7
java spring-roo
source share
2 answers

You can try adding the --permitReservedWords parameter to the entity command.

https://jira.springsource.org/browse/ROO-1502

+13
source share

If you want to change the name of the object, but keep the table name:

 entity --class ~.domain.FooUser --table user 

I would think that there is a way to quote all sql identifiers, but I don't know much about Roo.

0
source share

All Articles