eclipse / jnosql

Eclipse JNoSQL is a framework which has the goal to help Java developers to create Jakarta EE applications with NoSQL.
Other
229 stars 72 forks source link

Support for @Index annotation #478

Open m4ttek opened 7 months ago

m4ttek commented 7 months ago

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.

otaviojava commented 6 months ago

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.