Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Exclude transient fields from the field accessor pointcuts. Setting a…

… transient field marked the entity as "dirty", without having a way to clear this dirty flag again.
  • Loading branch information...
commit acd5d7884b831a050ee3f70ef6212037d8d80df2 1 parent eaa4144
@ractive authored
View
4 ...data-neo4j-aspects/src/main/java/org/springframework/data/neo4j/aspects/support/node/Neo4jNodeBacking.aj
@@ -87,13 +87,13 @@ public privileged aspect Neo4jNodeBacking { // extends AbstractTypeAnnotatingMix
protected pointcut entityFieldGet(NodeBacked entity) :
- get(* NodeBacked+.*) &&
+ get(!transient * NodeBacked+.*) &&
this(entity) &&
!get(* NodeBacked.*);
protected pointcut entityFieldSet(NodeBacked entity, Object newVal) :
- set(* NodeBacked+.*) &&
+ set(!transient * NodeBacked+.*) &&
this(entity) &&
args(newVal) &&
!set(* NodeBacked.*);
Please sign in to comment.
Something went wrong with that request. Please try again.