entity: adapter definition required only in queries