Skip to content
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...
1 parent eaa4144 commit acd5d7884b831a050ee3f70ef6212037d8d80df2 @ractive committed Apr 27, 2012
View
4 ...cts/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.*);

0 comments on commit acd5d78

Please sign in to comment.
Something went wrong with that request. Please try again.