Sometimes, even if you create domain objects in grails you get the error that No domain class found.
I am not sure why this happens because I am new to Grails and still learning. But the following steps work for me
i) Stop all the running grails app ctrl+C
ii) grails clean
iii) Now try grails generate-all domain-class-name
This generally works for me. I will update this post if I find the root cause of the problemSom
Thank you! I really can’t understand the error or the fix… but the fix worked!
I also did not understande fully the reason for that. Anyway, stopping app and running grails clean doesn’t hurt. 🙂