Skip to content
This repository was archived by the owner on Jun 17, 2023. It is now read-only.

+ Fix #273: Implement UUID generator#274

Merged
alexander-myltsev merged 1 commit intomasterfrom
273-uuid_gen
Feb 23, 2016
Merged

+ Fix #273: Implement UUID generator#274
alexander-myltsev merged 1 commit intomasterfrom
273-uuid_gen

Conversation

@alexander-myltsev
Copy link
Contributor

fix #273

@dimus
Copy link
Member

dimus commented Feb 19, 2016

Can you add to documentation how to use UUID generator?

@alexander-myltsev
Copy link
Contributor Author

Here is documentation on that part. What do you think is the best place to put it in README?

UuidGenerator

gnparser is also provided with facilities to create UUID version 5 out of scientific name string. It uses globalnames.org domain for DNS namespace. There is a 1:1 relationship between the string and the corresponding UUID, so it allows globally connect data about a name string originated from independent sources without a need to negotiate identifiers. You can find more information about UUID v5 from the original RFC4122 document.

Code sample to use it is as follows:

scala> val gen = org.globalnames.UuidGenerator()
scala> gen.generate("Salinator solida")
res0: java.util.UUID = da1a79e5-c16f-5ff7-a925-14c5c7ecdec5

@dimus
Copy link
Member

dimus commented Feb 22, 2016

I added the example code to Scala example in README

alexander-myltsev added a commit that referenced this pull request Feb 23, 2016
@alexander-myltsev alexander-myltsev merged commit b925af0 into master Feb 23, 2016
@dimus dimus removed the in progress label Feb 23, 2016
@alexander-myltsev alexander-myltsev deleted the 273-uuid_gen branch February 23, 2016 19:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move UUID generator to separate entity

2 participants