How to map one class to different tables using hibernate/jpa annotations

前端 未结 3 1981
你的背包
你的背包 2020-12-03 03:36

I\'m currently stuck with what seems to be a very simple problem, but I just can\'t seem to find a way around:

I have 2 identical tables:

  1. tb
3条回答
  •  無奈伤痛
    2020-12-03 04:22

    You have to use two different persistence units or two separate entities. This was already answered here.

提交回复
热议问题