문제

def show(Human humanInstance) {
    respond humanInstance
    //[Q1] In the above action humanInstance is works like Command object
    //(I read it in grails doc) they said here call the Domain.get(id) but
    //where the line [ Domain.get(id) ] written physically or where it executed when 
    //show call?
}
도움이 되었습니까?

해결책

In 2.3.0 the line of code which invokes the “get” method for this particular scenario is at https://github.com/grails/grails-core/blob/v2.3.0/grails-plugin-controllers/src/main/groovy/org/codehaus/groovy/grails/plugins/web/api/ControllersApi.java#L427.

Is that what you are looking for?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top