I know that I can generate code based on my database schema using Hibernate, but that only creates models. Is there a way to generate base for DAO layer or Rest controllers? Most forum questions about this topic are years old and I couldn't find anything on IntelliJ web.
Thanks in advance!
You can use Telosys to generate a full rest backend (Controller, service and DAO layers) based on your database schema.
The advantage of using Telosys is that it provides a wide range of templates for most known languages and frameworks, and with few clicks you will have your full application ready.
Here is the wiki of how to use the command line interface: Telosys-CLI
In your case (Java), you can use this template to generate the rest controller layer:
You will need then the commons service layer:
And for your DAO layer you will be able to choose between:
Of course, those are templates based on Java language, but Python and Node.JS are available as well.