JPA archive two tables in a third one

Viewed 13

I have two tables, X and Y. I want to archive them in a third, A. Is there a way in Spring Boot without rewriting code? Currently I have duplicate code.

1 Answers

One can use @Embedded annotation for this

Related