4

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?

Orca Ninja
  • 823
  • 1
  • 15
  • 29

2 Answers2

11

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
epidemian
  • 18,817
  • 3
  • 62
  • 71
Arturo Herrero
  • 12,772
  • 11
  • 42
  • 73
4

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

jenk
  • 1,043
  • 7
  • 8