I was trying to use @MappedSuperclass to share the same table between two entities following this article here (How to map multiple JPA entities to one database tab
@MappedSuperclass