VelocityDB & VelocityGraph

Object and Graph Database - ask us, share & let us know what you need.

Autoincrementing fields

Can you provide autoincrementing fields of numeric types in persistent objects by implementing a field attribute like [AutoIncrement] ? One will be able to add that attribute to field with

 [Index][UniqueConstraint]

but the field value is automatically incremented when object is persisted.

It must be retroactive if there are objects with such fields persisted already. For example if we had imported the objects with specified fields values with compiled class without that attribute, then next time after we put that attribute and compile it, Session must get the last value in indexed fields and increment it for new object.