Defining calculated field for Entity