Id return the Entity identifier
()
| 359 | |
| 360 | // Id return the Entity identifier |
| 361 | func (e *Entity) Id() entity.Id { |
| 362 | // id is the id of the first operation |
| 363 | return e.FirstOp().Id() |
| 364 | } |
| 365 | |
| 366 | // Validate check if the Entity data is valid |
| 367 | func (e *Entity) Validate() error { |