Add alias param. Rename hasOne to entityClass.