Hello, I just wanted to write another anotation to my key field so I can have a really simple index. This is the original code:
@Entity public class ObjectDbEntity<Key,Value> implements DataItemProvider<Value> { @Id private Key key = null; private Value value = null;
and I just want my key to be indexed on my db, just like this:
@Entity public class ObjectDbEntity<Key,Value> implements DataItemProvider<Value> { @Id @Index private Key key = null; private Value value = null;
How can achieve this? It's obvious there must be something wrong, but I haven't found ouy why.
Thanks in advance. Greatings