question: @ RequestMapping ( value = { "/" , "" } , method = RequestMethod . POST ) @ ResponseBody public RestWrapper update ( @ ModelAttribute ( "adqstatus" ) @ Valid AppDeploymentQueueStatus adqStatus , BindingResult bindingResult , Principal principal ) { LOGGER . debug ( "Entering into update for adq_status table" ) ; RestWrapper restWrapper = null ; if ( bindingResult . hasErrors ( ) ) { BindingResultError bindingResultError = new BindingResultError ( ) ; return bindingResultError . errorMessage ( bindingResult ) ; } try { com . wipro . ats . bdre . md . dao . jpa . AppDeploymentQueueStatus jpaAdqStatus = new com . wipro . ats . bdre . md . dao . jpa . AppDeploymentQueueStatus ( ) ; jpaAdqStatus . setDescription ( adqStatus . getDescription ( ) ) ; appDeploymentQueueStatusDAO . update ( jpaAdqStatus ) ; LOGGER . debug ( "Updating Adq Status Id" + jpaAdqStatus . getAppDeploymentStatusId ( ) ) ; LOGGER . debug ( "Exiting from update for deploy_status table" ) ; restWrapper = new RestWrapper ( adqStatus , RestWrapper . OK ) ; LOGGER . info ( RECORDWITHID + adqStatus . getAppDeploymentStatusId ( ) + " updated in AppDeploymentQueueStatus by User:" + principal . getName ( ) + adqStatus ) ; } catch ( Exception e ) { LOGGER . error ( e ) ; return new RestWrapper ( e . getMessage ( ) , RestWrapper . ERROR ) ; } return restWrapper ; }
target:  This method calls UpdateDeployStatus and updates the record passed. It also validates the values of the record passed.