change entity to mappedclass