4
votes

Is there an existing way to implement a HI/LO algorithm for my id generation in ORMLite?

I decided to switch from NHibernate to ORMLite and would rather not use AutoIncrement or GUIDs.

1

1 Answers

1
votes

OrmLite doesn't have such a function, however, Redis's atomic INCRBY command would give you a source of Id numbers that you could use.