Search code examples
javaspringspring-roo

Is editing Java entity files equivalent to generating then in Spring Roo?


Is editing Java entity files equivalent to generating then in Spring Roo? Can I add more fields to it manually?

The things is that I already have entities and I just want everything else generated by Roo, can I do that?


Solution

  • Yes. You can make the modification in the entity. Roo can understand that.

    Make sure you have, Roo running, if you are running all your commands from command line.

    Check the following line in your persistence.xml to get your schema updated.

    <property name="hibernate.hbm2ddl.auto" value="update"/>