[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.rt.eclipselink] Re: Updating an entity using reflection does not work?
|
By default when using weaving/agent EclipseLink uses attribute change
tracking to detect changes. This will not detect changes made through
reflective field access (method access is ok though).
You can change the default using the @ChangeTracking annotation to
deferred which will detect change made through reflection.
i.e.
@ChangeTracking(ChangeTrackingType.DEFERRED)
http://www.eclipse.org/eclipselink/api/1.1.2/org/eclipse/persistence/annotations/ChangeTracking.html
You could also disable weaving, or weaving of change tracking in the
persistence.xml using,
"eclipselink.weaving.changetracking"="false"
---
James
http://www.nabble.com/EclipseLink---Users-f26658.html