How to implement a temporal table using JPA?

后端 未结 4 1710
有刺的猬
有刺的猬 2021-01-31 04:29

I would like to know how to implement temporal tables in JPA 2 with EclipseLink. By temporal I mean tables who define validity period.

One problem that I\'m facing is t

4条回答
  •  别那么骄傲
    2021-01-31 04:39

    Not exactly sure what you mean, but EclipseLink has full support for history. You can enable a HistoryPolicy on a ClassDescriptor through a @DescriptorCustomizer.

提交回复
热议问题