Hi,
I love Roo, but there is one area I think needs urgent attention before GA:
If we take the simple example of Pizzas with Toppings and make the roo script below:
Then start and visit the resulting app with your browser on : http://localhost:8080/pizzas/Code:create project -topLevelPackage com.pizzas install jpa -provider OPENJPA -database HYPERSONIC_PERSISTENT new persistent class jpa -name ~.domain.Topping add field string -fieldName name new persistent class jpa -name ~.domain.Pizza add field string -fieldName name add field set jpa -element ~.domain.Topping -fieldName toppings install finder -class ~.domain.Pizza -finderName findPizzasByToppings new controller automatic -name ~.web.ToppingController -formBackingObject ~.domain.Topping new controller automatic -name ~.web.PizzaController -formBackingObject ~.domain.Pizza
Try to use the finder on Pizza to locate a Pizza by Toppings.
You will just see a text box, surely there should be a selectable list of toppings?
After some playing it seems the box wants a long relating to the ID of the topping, but there seems no way to specifiy more than one topping. If you do specify a single valid topping ID you get a classcast exception.
Also, while we are here the Menu text is wrong , it says: "Find by find by Toppings".
Roo is great keep up the great work Ben and Stefan etc.
Would be very grateful for some pointers on how to overcome this.
Duncan. (using 1.0.0.RC2 [rev 274] , and OPENJPA due to problems with Hibernate - try that too)


Reply With Quote