(Quick Reference)

generate-vaadin-all

Purpose

Generates a Vaadin controller, views, and a controller unit test for the given domain class

Examples

grails generate-vaadin-all
grails generate-vaadin-all org.bookstore.Book
grails generate-vaadin-all *

Description

Generates the Controller and Views for the specified domain class.

Note that this command is identical to Grails's generate-all except that it uses different templates - located at src/templates/vaadin

The generate-vaadin-all command generates an implementation of CRUD including a controller and views for the given domain class. The argument is optional, but if you don't include it the command will ask you for the name of the domain class to scaffold. So for a domain class org.bookstore.Book, this command will generate the controller grails-app/controllers/org/bookstore/BookVaadinController.groovy and its associated views in grails-app/views/vaadin/book.

Usage:

grails generate-all [name]

Arguments:

  • name - Either a domain class name (case-sensitive) or a wildcard (*). If you specify the wildcard then controllers and views will be generated for all domain classes.