You can create Java classes in your Roo project, either by using the IDE of your choice or by using the
class command. If you create a class using Roo, boilerplate code (which includes
, and get and setter methods for attributes) is generated automatically and managed by Spring Roo, and is kept in a separate AspectJ ITD file.
Start the Roo shell from the
C:\roo-cookbook\ch01-recipe directory, which contains the
flight-app Roo project.
You can create a Java class using the
class command, as shown here:
roo> class --class sample.roo.flightapp.service.FlightService --rooAnnotations Created SRC_MAIN_JAVA\sample\roo\flightapp\service Created SRC_MAIN_JAVA\sample\roo\flightapp\service\FlightService.java ...