In previous recipes we saw how to create mock and integration tests for persistent entities. In this recipe we'll look at how to execute these tests using the
tests command of Spring Roo.
Exit the Roo shell and delete the contents of the
ch02_jsr303_fields.roo script. It creates a
flight-app Roo project and sets up Hibernate as the persistence provider using the
setup command. The script also creates a
Flight entity, which has
FlightKey as its composite primary key class, and adds fields to the
FlightKey classes. If you are using a different database than MySQL or your connection settings are different from what is ...