I sat on it for some time, not making this change. But now that I got deeper 
into the mapping layer overhaul, I am starting to feel stronger about removing 
callbacks from the XML. They are just so different from all the other mapping 
artifacts. So they will be preserved in 5.0, but will be gone in 6.0. I hope it 
is not a huge inconvenience. 

Andrus


> On Jul 12, 2026, at 4:44 PM, Andrus Adamchik <[email protected]> wrote:
> 
> Hi Jurgen,
> 
> Thanks for the feedback. I actually thought this was the least controversial 
> change of the three :) 
> 
> 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 AM, Jurgen Doll <[email protected]> wrote:
>> 
>> Hi Andrus
>> 
>> 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.
>> 
>> Thanks, regards
>> Jurgen
> 

Reply via email to