missing entity key will throw exception