[Development Notes] - Grails framework defines a database field was not a property

Entity class

class Book {   
   String name   
   String author   
   // myfiled I do not want him to build a field book tables in the database   
   String myfield   
}  

Add the declaration

class Book {  
        // this statement can be   
       static Transients, = [ 'myfield' ]   
       String name     
       String author     
       // myfiled I do not want him to build a field book tables in the database     
       String myfield     
}   

 

Guess you like

Origin www.cnblogs.com/juihai/p/11984787.html