Changed ID type of entity lock.
Updated library model.