[repository] implemented entity class check [closes #15]