How to automatically add hbm.xml in IDEA?

Go to Project Structure (Ctrl+Alt+Shift+Son my Box) → Facets → Plus sign at the top of dialog → Hibernate → and select your cfg.xml file there. hbm.xml should connect to project automatically.

Hereyou can find info about generating persistence mappings. Briefly: in View -- Tools -- persustence tools window you can right-click your persistence unit ang there generate persistence mappings.

相关文章

这篇文章主要介绍了idea中mapper快速跳转到xml插件的方法,具...
今天小编给大家分享的是IDEA搭建Maven模块化项目的实现方法,...
这篇文章主要介绍了ideaintellij怎么快速修复if语句缺少大括...
这篇文章主要介绍“idea运行main方法或Test避免编译整个应用...
这篇文章主要介绍“idea项目全局去掉严格的语法校验方式是什...
本文小编为大家详细介绍“Windows、IDEA、VSCode常用快捷键有...