Please use the ClassMetadata object instead.