Grails: Creating classes that you do not want to store on the DB

grails, grails-domain-class, groovy, web-applications

Solution

define `static mapWith="none"` inside your class in grails-app/domain folder

Problem

In grails is creating a new domain class and never persisting any objects to the db, the best way to create a class that you don't want to store in the db?

Original source