entity collection class can be passed to attribute definition