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?
Grails provide the src
directory to develop some utility classes and other artifacts. The src
directory it not persisted.
src - Supporting sources
groovy - Other Groovy sources
java - Other Java sources
define static mapWith="none"
inside your class in grails-app/domain folder
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.