First Spring roo Project
project --topLevelPackage com.springsource.pizzashop persistence setup --provider HIBERNATE --database MYSQL database properties set --key database.url --value jdbc:mysql://localhost:3306/pizza database properties set --key database.username --value root entity --class ~.domain.Topping --testAutomatically field string --fieldName name --notNull --sizeMin 2 entity --class ~.domain.Base --testAutomatically field string --fieldName name --notNull --sizeMin 2 entity --class ~.domain.Pizza --testAutomatically field string --fieldName name --notNull --sizeMin 2 field number --type java.lang.Double --fieldName price --min 0 --primitive field reference --type ~.domain.Base --fieldName base --notNull field set --element ~.domain.Topping --fieldName toppings --cardinality MANY_TO_MANY entity --class ~.domain.PizzaOrder –testAutomatically field string --fieldName name --notNull --sizeMin 2 field string --fieldName address --sizeMax 50 field date --type java.util.Date --fieldName deliveryDate --class ~.domain.PizzaOrder field set --element ~.domain.Pizza --fieldName pizzas --sizeMin 1 field number --type java.lang.Double --fieldName total --min 0 --primitive controller all --package ~.web logging setup --level DEBUG --package WEB selenium test --controller com.springsource.pizzashop.web.BaseController finder add --finderName findPizzasByToppingsAndPriceLessThan --class ~.domain.Pizza security setup controller scaffold --class ~.web.PublicPizzaController --path /public/pizza --disallowedOperations create,update,delete --entity ~.domain.Pizza web flow
Introduction to Spring Roo
Spring Roo 1.0.0 Technical Deep Dive
– Contains links to all other resources
• Forum → http://forum.springsource.org
– Roo team actively monitor forum and answer queries
• Issues → http://jira.springframework.org/browse/ROO
• Twitter → #roo hash key