Inherited abstract class with JPA (+Hibernate)

前端 未结 3 819
忘掉有多难
忘掉有多难 2020-12-03 02:11

How would you configure annotations in the following example code? I\'d like to stick with JPA annotations only and avoid Hibernate specific dependencies. Is the cod

3条回答
  •  长情又很酷
    2020-12-03 02:49

    You can use one of the inheritance strategy to to this. Your case looks to be the case of Single class for the hierarchy.

    Check this

提交回复
热议问题