VelocityDB & VelocityGraph

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

Descending sort in the Index field attribute

Can you add the possibility to set descending sort  while using Index Attribute on the field? Something like [Index(descendingSort:true)]

As far I know, it is  possible to use descending sort with attribute on the class by prepending a minus, i.e. [Index("-indexField")]

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.