> I'd like to see the println only showing the node created in the fourth
> line of code.
You could just use:
System.err.println(n);
The problem is that a Transaction keeps the list of changes it makes in memmory (not in the database). It does not refect these changes in any queries you submit. This is because it is almost impossible to accurately insert the (in memory) changes when you can specify constraints or sort orders in your query.
You CAN ask newly inserted nodes by their (temporary) number, so :
System.err.println(t.getNode(n.getNumber()));
would also work.
Gomez
