Re: Model simplification - single file, no DataNodes?
Andrus Adamchik <[email protected]> Sun, 12 Jul 2026 16:44:33 -0400
| Newsgroups | gmane.comp.java.cayenne.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Jurgen, Thanks for the feedback. I actually thought this was the least = controversial change of the three :)=20 My thinking is that XML is about "mapping" between DB and Java, whereas = callbacks are 100% about runtime object behavior unrelated to mapping. = So it naturally belongs in Java and doesn't require an additional ORM = abstraction (FWIW, I'd even get rid of annotations and let objects = implement explicit callback interfaces for clarity and ease of = processing). A similar earlier precedent was when we removed modeling of = "listener" (non-entity) callbacks in XML in favor of doing it in the = code. Andrus > On Jul 12, 2026, at 4:16=E2=80=AFAM, Jurgen Doll = <[email protected]> wrote: >=20 > Hi Andrus >=20 > With regards to (3) the "Removal of ObjEntity callbacks support from = XML" I'm not particularly in favour of this. > I like seeing in the model which ObjEntity have whatever callbacks = allocated to them. > It's like having one source of truth wrt the model, if it's removed = then one has to switch between XML model and implementation to see this = information. >=20 > Thanks, regards > Jurgen