Overriding Domain Class Getters and Setters in Grails

One might assume that it is possible to override getters and setters in the following manner:


def setName(String name){
//do stuff
}
def getName(){
//do stuff
return name
}


but infact static typing is required

public void setName(String name){
//do stuff
}

public String getName(){
//do stuff
return name
}

Comments

Popular posts from this blog

AngularJs: User friendly date display with AngularJs and MomentJs

Getting started with Grails functional tests using Geb + Spock

Nerd Tree: A File Explorer with Mac Vim