Allow setting of method in entity attribute