IntelliJ IDEA support for Hibernate includes automatic creation of an appropriate module structure, code completion, syntax and error highlighting, code inspections and quick-fixes, refactorings, and Entity Relationship diagrams.

See also, Generating Persistence Mappings and Mapping by Database Schema.