Hibernate Annotation for Entity existing in more than 1 catalog

后端 未结 3 1920
死守一世寂寞
死守一世寂寞 2021-02-06 08:13

I have a Person entity mapped by Hibernate to a database table in a database catalog \"Active\". After a period of time, records in this database table in the \"Active\" catalo

3条回答
  •  孤独总比滥情好
    2021-02-06 09:13

    I think there is a subproject of hibernate named shards. It is designed to work with multiple relational databases. If you want to use it, you may need big changes in your code.

提交回复
热议问题