Hi All,
I have finally arrived at an implementation on UUID and a Primary Key embedded.
The short version is that my UUID's have embedded a Primary Key in them
000000231-22e-6aa1-a789-28ef27ab7c62
where 231-22e is an incremental Primary Key, and aa1 is the groupId.
I thought those interested could have a read and see what they think.
My UuidGenerator is used with EventSourced as follows:
class PersonProcessor(val repository: Repository[Uuid, Person]) extends AbstractProcessor[Person]
with UuidGenerator[Person]
{ this: Emitter =>
Where UuidGenerator gives me a new Id. be interested to see what others think. It is perhaps a bit left field but seems (early doors) to solve my itch.
regards
Ramon