I have set up entities and their relationships with Spring Roo. I am trying to run “perform tests” through Roo but see that corresponding tables for these entities are not created in the datbase that I selected as part of my database setup.
Is there a way to tell Spring Roo to generate database tables, columns too alongside entities and its fields?
You may need to create the database yourself, then Hibernate will create the tables for you. I had the same problem and my db user was root so I just assumed that Hibernate would create the database – but it wasn’t. As soon as I created the schema, everything worked fine.
The tables seem to be created during sessionFactory creation according to this answer.