concept topping in category java
appears as: toppings, topping, toppings

This is an excerpt from Manning's book Spring Roo in Action.
The pizzashop.roo sample is a simple demonstration application that simulates a basic pizza shop. It allows the user to define bases, toppings, pizzas, and orders.
roo> entity jpa --class ~.domain.Base --activeRecord false --testAutomatically roo> field string --fieldName name --sizeMin 2 --notNull roo> entity jpa --class ~.domain.Topping --activeRecord false --testAutomatically roo> field string --fieldName name --sizeMin 2 --notNull roo> entity jpa --class ~.domain.Pizza --activeRecord false --testAutomatically roo> field string --fieldName name --notNull --sizeMin 2 roo> field number --fieldName price --type java.math.BigDecimal roo> field set --fieldName toppings --type ~.domain.Topping roo> field reference --fieldName base --type ~.domain.Base
Try clicking on SAVE without entering a topping. Spring should have turned the input field yellow and marked it with a triangle warning, as depicted in figure 1.4.