
Originally Posted by
Stefan Schmidt
roo> script vote.roo
Stefan, this was very useful.
I ran the vote.roo script as suggested and it did run security setup.
The main difference was the script used separate web mvc scaffold commands and a web mvc controller command whereas the tutorial had web mvc all --package ~.web
For the tutorial, http://static.springsource.org/sprin...beginning.html, don't use web mvc all --package ~.web
Thanks
FYI - here is what a script for Roo 1.1.5
Code:
project --topLevelPackage com.springsource.pizza
persistence setup --provider HIBERNATE --database HYPERSONIC_PERSISTENT
entity --class ~.domain.Topping --testAutomatically
field string --fieldName name --notNull --sizeMin 2
web mvc setup
web mvc scaffold ~.web.ToppingController
entity --class ~.domain.Base --testAutomatically
field string --fieldName name --notNull --sizeMin 2
web mvc scaffold ~.web.BaseController
entity --class ~.domain.Pizza --testAutomatically
field string --fieldName name --notNull --sizeMin 2
field number --fieldName price --type java.lang.Float
field set --fieldName toppings --type ~.domain.Topping
field reference --fieldName base --type ~.domain.Base
web mvc scaffold ~.web.PizzaController
entity --class ~.domain.PizzaOrder --testAutomatically
field string --fieldName name --notNull --sizeMin 2
field string --fieldName address --sizeMax 30
field number --fieldName total --type java.lang.Float
field date --fieldName deliveryDate --type java.util.Date
field set --fieldName pizzas --type ~.domain.Pizza
web mvc scaffold ~.web.PizzaOrderController
web mvc language --code de
web mvc language --code es
logging setup --level WARN --package WEB
security setup
finder list --class com.springsource.pizza.domain.Pizza --depth 2 --filter reg,betw,IpEq
logging setup --level INF