Hello guys,

this is not directly jOOQ related, but maybe someone here has already had 
this problem, and has some input to share.

I posted this on stackoverflow:
- 
https://stackoverflow.com/questions/78237587/java-pojos-modified-fields-and-change-detection

It is a bit related to the following jooq blog post:
- 
https://blog.jooq.org/orms-should-update-changed-values-not-just-modified-ones/

I needed to write a common `AbstractDTO` class, that all the jooq-generated 
DTOs and my own DTOs need to extend from, because i needed 
"modified-fields" detection. I have described it in my stackoverflow post.

We have two cases when we send data to the database:
- Insert: send and validate everything we have in the model
- Update: only send and validate modified/touched stuff in the model.

Java does not seem to have a default mechanism to detect if a field in a 
pojo has ever been modified or still has its default (never touched).

Its not urgent to me, but if someone reads it and instantly knows a library 
or tool for something like this, give me a call ;)

-- 
You received this message because you are subscribed to the Google Groups "jOOQ 
User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jooq-user/0624283a-e9a5-40d3-8548-c00141fca706n%40googlegroups.com.

Reply via email to