[neo4j] Auto Increment ID for node
Like other databases, is there any auto increment ID support from neo4j / SDN for nodes ?
For example in the following example I want to the variable id to be unique and automatically incremented everytime a node gets checked in.
I was trying to maintain one incrementing ID, by counting the nodes, saving it to database etc. But it would be better if there is an existing support
for autoimcrementing unique keys
@NodeEntity
public class A {
@Indexed(unique=true) long id; // I want this to be incremented automatically and be unique
public A() {
}
}