hibernate.cfg.xml中如何设置hbm.xml和注释的绘图

在一个冬眠项目中,我们需要同时设置hbm.xml和注释的绘图

这种情况hibernate.cfg.xml如何配置

其实hibernate.cfg.xml中是可以同时设置hbm.xml和注释的。

例如下面的配置用户用户:

映射类=' com。奥赛兹。covid 19。普通。模特。covid 19 Current '/

映射资源='hbm/api/RewsUser.hbm.xml' /

冬眠能够自动识别上面2个制图。

hibernate.cfg.xml中如何设置hbm.xml和注释的绘图

https://www.cwiki.us/display/HIBERNATE/questions/57938966