Expose id generation through repository interface
Fix typo