In grails app, there might come scenarios where one need to create a non-persistent domain rather than creating a command obejct or POJO / POGO. GORM comes with a handy static property mapWith which has default value GORM (which associates any domain with gorm persistence layer). To make a domain non persistent set mapWith=”none”. For example, see Ticket domain below [code lang=”groovy”] public cl
![Making a domain non-persistent | TO THE NEW Blog](https://cdn-ak-scissors.b.st-hatena.com/image/square/ffd0ded3aff090b2606fd8aec8434fa3bf13d228/height=288;version=1;width=512/https%3A%2F%2Fstatic1.tothenew.com%2Fblog%2Fwp-content%2Fthemes%2Fttn%2Fimages%2Fsocial-logo.png)