i loaded two sql dumps into a spring boot application, one from 2020 and one from 2019. Now I want to compare one table called "tags" from the 2019 database with the "tags" table from the 2020 database. Is this possible by using the @Table / @Entity annotation?
@Table(name="tags",schema = "xyz")
@Entity
public class TagsEntityOld {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
private Long version;
private String description;
private String name;
private Timestamp createdOn;
private String lastModifiedBy;
private Timestamp lastModifiedOn;
private String createdBy;
public TagsEntityOld() {
}
@Table(name="tags",schema = "xyz")
@Entity
public class TagsEntityNew {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
private Long version;
private String description;
private String name;
private Timestamp createdOn;
private String lastModifiedBy;
private Timestamp lastModifiedOn;
private String createdBy;
public TagsEntityNew() {
}