Entity classes with attribute types