List<People> people = ...List<People> removed = new ArrayList<>();removed.add(people.remove(people.size() - 1));ctx.batchStore(people).execute();ctx.batchDelete(removed).execute();
--
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 jooq-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
In Hibernate and JPA we can use a flag called "deleteOrphans", so when those frameworks load collections, we use this flag to delete or not removed elements from collections.I tried to code something like that, but I can't identity when a list element was retrieved from database or was just created.
But how can I know when a record is new or restored from database?
--