Entity setStored() is called after selectSQL().