HHH-6638 add test case for select entity with composite id

Add test case select entities with composite primary key and one to one relationship