Magic data transformers using entity metadata