Hibernate configuration file (.cfg.xml) for mapping multiple MySQL tables in the same database?

后端 未结 2 460
轮回少年
轮回少年 2021-01-18 13:43

I am experimenting with Hibernate for my Java web app. The following is part of my hibernate.cfg.xml, and I wondering how to map multiple database tables in the same configu

2条回答
  •  日久生厌
    2021-01-18 14:29

    WE can't configure the multiple databases in single configuration file.if we use multiple databases we have to use multiple configuration file. in respective tables we can configure in respective configuration file.

提交回复
热议问题