use entity class as key