ormlite-core icon indicating copy to clipboard operation
ormlite-core copied to clipboard

foreignAutoUpdate? Updating foreign objects

Open barrychapman opened this issue 8 years ago • 1 comments

@j256 - I recall seeing a forum post somewhere, where you had entertained the idea of adding a foreignAutoUpdate annotation.

Is this something that may be done in the future? It would be really useful. Especially, for example, if you update a join table which contains two foreign objects. You could then update those two included objects. This could be coupled with an isDirty() method.

Thanks!

barrychapman avatar Sep 12 '17 06:09 barrychapman

Sorry to not leave feedback on this sooner. I've certainly read this issue and am still considering it. You've probably moved on but I've got some questions.

I assume that there would be an interface like AutoUpdatable or something which would define the isDirty() method. When would trigger it to be called.

j256 avatar Nov 04 '21 13:11 j256