How do you get the id after saving a domain object?

How I can get the ID of a saved object.

please give me an idea. because I am a beginner in grails

 def saveCandidates(){
            def candidate=new Candidates(
                    name: request.getParameter('name'),
                    email: request.getParameter('email'),
                    mobile: request.getParameter('mobile')
    //how i can get of candidate
           redirect(uri: request.getHeader('referer'))
            //redirect(url: request.header('referer'))

I am trying to run the SimulationStarted class with the moving average strategy in the open source edition of AlgoTrader. When I start the SimulationStarter I get ArrayIndexOutOfBoundsException. I ...

Is it possible to display a web applet inside a java application's window? It would be preferable if you could give an example code, as I am rather newbish with java.

I have two scroll panes that I am trying to set the scroll bars to always be visible. For some reason when I try to use the code (scroll code) below, I get an error that "The method ...

I have a spring boot application which reads some passwords from an xml while, which is not part of the jar. It has to be in a separate folder. How can I add this xml file to the classpath so that ...