Fixed a bug and needed to introduce the @TypeDiscriminator on all Entities to fix generated views