Using HiberoXML Configuration/Mapping
The features related to XML configuration/mapping (auto-completion, find usages, refactorings,
inspections, etc.) are enabled without any extra configuration. The only piece of
information necessary is the version of Hibernate you are developping against. Please note that an XML file will be recognised as a Hibernate mapping file by its DTD:
And for XML configuration files:
Also, be sure that these DTD files are defined in IDEA's resources settings (). For your convenience Hibero provides templates to quickly create Hibernate XML Configuration and Mapping files accesible from the New contextual menu.
EJB3 Persistence Annotations
To enable the features related to EJB3 Persistence Annotations just be sure that
the annotations (@javax.persistence.*) are included in
the project classpath. Hibernate AnnotationsTo enable the features related to Hibernate Annotations include both hibernate-annotations.jar and lib/ejb3-persistence.jar from the Hibernate Annotations distribution to the project classpath. Database and HQLThe completion of database objects and HQL features like query execution, translation, etc. require:
|