get adapter from entity