Search code examples
spring-roo

STS Spring Roo not creating entity


I just download the full STS and created a Roo project. I executed

persistence setup --provider HIBERNATE --database HYPERSONIC_PERSISTENT

and everything worked. Then I executed

database properties list

and I got a list of properties. Then I executed

entity --class ~.domain.Rsvp

and I got

Command 'entity --class ~.domain.Rsvp' not found (for assistance press CTRL+SPACE or type "hint" then hit ENTER)

Does anyone know how to fix this?


Solution

  • what version of Roo are you using? If what you are using is roo 1.2.2 or above, try the following command.

    entity jpa --class ~.domain.Rsvp