java - Query which changes database in Spring Data Neo4j (4.1.2) -
i created @query in repository class (extends graphrepository), updates nodes/relationships (it simplier , faster way instead of operating java objects). cannot see result, session not updated. there solution let query update session (eg. annotation)?
if change creates/deletes relationships should visible when query affected objects again.
if change updates properties might not visible cached instance may returned.
use session.clear()
clear session , load affected objects again.
Comments
Post a Comment