Use reflection to obtain entity class in data access object.