Reference setup should be mappedSuperclass not entity.;