fyi : UUID and Primary Keys

41 views
Skip to first unread message

Ramon Buckland

unread,
Oct 11, 2013, 6:16:56 PM10/11/13
to events...@googlegroups.com
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. 
I posted a fairly lengthy article at http://rbtech.blogspot.com for more reading.

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

Ramon Buckland



Reply all
Reply to author
Forward
0 new messages