groovy - Is it possible in grails to disable persistence of a domain class? -


To get around I have to take such classes on src / groovy.

< Strong> Update 1: It is good to find one (to find GRAILS-2515) that it is a good idea to get all domain model squares in the domain domain. Grails feature on Girira Page. If someone is interested in this feature then you can vote and track it.

Updates on GREALS-2515: Move with 1.3 = "None" with the static map.

It is possible to mark some properties on the domain object as 'transient' so that they are not continuous Otherwise, all domain objects are reserved for the database.

UPDATE

With Grails 1.3.5's most recent release (released on October 4, 2010) It is now possible To disable the perseverance of a domain class. Add the following to the domain class:

  static map = "none"  

is one with more details.


Comments