ive added a bit better dirtychecking i believe, so it should catch {{person.getAddress().setCity( "austin")}}. i still need to add checks for fields that inherits Collection. the methods ive added looks like this: {{ bq. private boolean $$hibernate_isEntityDirty(Object paramObject) { return (!(paramObject instanceof SelfDirtinessTracker)) || (((SelfDirtinessTracker)paramObject).$$hibernate_hasDirtyAttributes()); } private boolean $$hibernate_areEntityFieldsDirty() { return $$hibernate_isEntityDirty($$_hibernate_read_address()); } public boolean $$hibernate_hasDirtyAttributes() { return ((this.$$_hibernate_tracker == null) || (this.$$_hibernate_tracker.isEmpty())) && ($$hibernate_areEntityFieldsDirty()); } }}
|