domainClass

Purpose

The domainClass plug-in sets up Grails domain classes as prototyped beans in the Spring ApplicationContext

Examples

An example domain class:

class Book {
	String title
	Date releaseDate
	Author author
}

Description

Refer to the section on GORM in the Grails user guide which details how to create Grails domain classes.

Configured Spring Beans given a domain class of Book: