Merge pull request #21 from nikitskynikita/master
Добавлена автоматическая генерация entityId для класса Entity
This commit is contained in:
commit
e0f35db589
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue