class Book {
String title
String name
int status
}
If you don't want grails to create the status field in the database, you add static transients = ['status']
to your class.
class Book {
String title
String name
int status
static transients = ['status']
}
If you want to save status to the database but do not want the Scaffold to display the status on the screen, you can use status display: false
in the constaints.
class Book {
String title
String name
int status
static constraints = {
status display: false
}
}