Adding entity definition to bean