jamesfredley commented on issue #13669: URL: https://github.com/apache/grails-core/issues/13669#issuecomment-3166145839
The following example project have been updated with the latest Grails 7 changes: https://github.com/jamesfredley/hotswap-demo - using org.hotswapagent:hotswap-agent:2.0.2 and groovyReset.jar You can complete the exact steps from: https://www.youtube.com/watch?v=Fz_sKuZ-ytg, although you will see more log noise. To replicate the steps in the video: ``` clone https://github.com/jamesfredley/hotswap-demo ./grailsw create-domain-class Car // manually add String name to Car domain class run-app // view list of controllers on http://localhost:8080/ create-scaffold-controller com.example.Car // view list of controllers on http://localhost:8080/ // you can create a Car and save, view the list, delete etc. ``` But other tasks, while Grails is running, such as adding a domain, adding a new field to a domain do not appear to work without a restart. Adding an action to a controller works, just make sure the view exists. ``` ./grailsw run-app // view list of controllers on http://localhost:8080/ create-domain-class Pet // manually add String name to Pet domain class create-scaffold-controller com.example.Pet // view list of controllers on http://localhost:8080/ // click on PetController // Error: Either class [com.example.Pet] is not a domain class or GORM has not been initialized correctly or has already been shutdown. Ensure GORM is loaded and configured correctly before calling any methods on a GORM entity. exit ./grailsw run-app // view list of controllers on http://localhost:8080/ // click on PetController, it works fine ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@grails.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org