Wednesday, 31 August 2011

ROO Commands

Relationship
============
1.m:m use "field set"
(one Pizza can have many Toppings & one Topping can be applied to many Pizzas)
~.domain.Pizza roo> field set --fieldName toppings --type ~.domain.Topping

2.m:1 use ""field reference"
(one Pizza can have one base & one base can be applied to many Pizzas)
~.domain.Pizza roo> field reference --fieldName base --type ~.domain.Base

3.Automatic JSON support, including in Spring MVC applications
curl -v -H 'Accept: application/json' -X GET http://localhost:8080/petclinic/owners/

No comments:

Post a Comment