How to create DAO classes in ItelliJ IDEA

Are there any possibilities how to create DAO classes in ItelliJ IDEA ? I found many articles about creating entities, but none of them created a DAO.

I am using version 11.1.2.

+4
source share
2 answers

IntelliJ IDEA does not support it, you can use Hibernate Tools instead of Ant:

Task

Ant: Hibernate3 tools include a single Ant task that allows you to run schema generation, mapping generation, or Java code generation as part of your assembly.


Tools for Hibernate provide various tools for use with Hibernate. Basic tools can be used to generate source artifacts, such as mapping files, java objects, DAOs, and other scaffoldings. the source of this generation may be a JDBC database, classes, or even just existing mappings.

It uses the Hibernate kernel metamodel to generate artifacts from and from the source. Allowing him to support both top to bottom and bottom to top and midline development.

Hibernate is used in Jiboss Tools Hibernate plugins to provide some of the Eclipse plugins for Hibernate.

+1
source

It should be noted that Intellij now supports this. Follow the instructions here:

Intellij New Features

+1
source

All Articles