If you are using Roo only to create the persistence layer of your enterprise application, then you may want to package your Roo project as a JAR file and use it. This recipe shows how you can package your Roo project and how Roo ensures that your packaged JAR file is independent of Roo-specific annotations and AspectJ ITDs.
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 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 specified in the script, then modify the script accordingly.
Start the Roo shell from the