Reputation: 473
I need to keep change of entities in a little bit tricky fashion. There is one HISTORY table for all entities with structure something like this
TABLE
ATTR
VALUE
DATE
TYPE
(insert/update/delete)
As I am quite novice in JPA I don't realize how to achive this using JPA. Or it's better to use JDBC for this purpose?
UPD: JPA implementation is EclipseLink
Upvotes: 0
Views: 1148
Reputation: 569
JPA itself does not have a solution for this, so you have to use implementation specific solutions.
For your implementation, try this and check this.
Upvotes: 0