As of Spring Roo 1.1.3, both
setup commands support the
persistenceUnit argument which lets you create enterprise applications which interact with multiple databases. In this recipe we'll create two persistent units:
flightpersistence unit consists of a single entity,
Flight. It uses Hibernate as a JPA provider and maps to a MySQL database named "myFlightDB".
paymentpersistence unit consists of a single entity,
Payment. It uses Hibernate as the JPA provider and maps to a MySQL database named "myPaymentDB".
Exit the Roo shell and delete the contents of the
Start the Roo shell from the