Merge pull request #21 from nikitskynikita/master

Добавлена автоматическая генерация entityId для класса Entity
This commit is contained in:
Ivan Vavilov 2019-11-11 11:39:52 +04:00 committed by GitHub
commit e0f35db589
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -20,10 +20,12 @@ open class Entity: Hashable {
/// Unique entity identifer.
open var entityId: String = ""
open var entityId: String
required public init() {}
required public init() {
entityId = UUID().uuidString
}
/// Creates an instance with identifier.