LockableEntity, base repositories and services