|
Ive changed the name of the interface to SelfDirtinessTracker, it also have a clear method. regarding the composite problem, i havent thought this through heavily so bear with me  is it possible to find out at this stage (in Enhancher) if a field is another entity object? if so during isDirty we could call their isDirty method instead of calling equals. if the class is annotated i think this should be easy, i guess not so easy if its mapped with xml?
ive looked at the DefaultFlushEntityEventListener#dirtyCheck, so i think this check should only be used if the custom hasnt found anything? mapping the field names to the int[] should be possible i think as long as i can find how the int[] is generated originally 
btw, should i check if the entity has already been enhanced and should perhaps the dirtychecker ignore primary key fields?
|