Have a trouble with nested entities while calling Neo4jTemplate.save(...)
.
Actually yes, nested entities being persisted as well, but BeforeSaveEvent
only invoked on parent entity.
In BeforeSaveEvent
, I populate uuid
and timeCreated
fields for all entities.
I don't want to create this value by myself in class constructor.
So, I'm considering the following solutions:
make it somehow work as I expected (a tough one).
do not even try persist nested entities and persist all entities in a separate way...
create
uuid
andtimeCreated
in class constructoruse external library (most unlikely)
Any advice?