Support for @Index annotation
m4ttek opened this issue · comments
Which JNoSQL project the issue refers to?
JNoSQL Databases
Use case
It would be great if jnosql could support @Index annotation which may be the same as the one present in JPA standard API.
In my own project I've created such annotation and added some code which uses class ReflectionClassScanner
for entity classes and registers found index fields in arango database.
It may be an extension to jnosql if it would be a better option due to variety of databases and their functionalities.
Feature proposal
Add @Index and @indexes annotations to be used on entity types for document databases.
Yes, we can explore any observability of annotations.
I mean, given an annotation, we can fire events, thus, the provider can procedure as they wish with this information.