Re: [hibernate-dev] v6 and load-event

2020-05-27 Thread Steve Ebersole
Inline... On Wed, May 27, 2020 at 8:10 AM Sanne Grinovero wrote: > At high level I agree, just have 3 more thoughts: > > # Regarding the "swap" of information between listeners - could that > even work? I might have misunderstood something, but wouldn't we > require listeners to run in some spec

Re: [hibernate-dev] v6 and load-event

2020-05-27 Thread Sanne Grinovero
At high level I agree, just have 3 more thoughts: # Regarding the "swap" of information between listeners - could that even work? I might have misunderstood something, but wouldn't we require listeners to run in some specific order for such swapping to work? # The "surround advice" you mention fo

Re: [hibernate-dev] v6 and load-event

2020-05-27 Thread Steve Ebersole
The overall concept with event+listeners initially was that listeners would "collaborate" which each other with the event as a token for common information. The "result" of the operation was made part of the event to facilitate this design - the idea being that one listener might swap the result,

Re: [hibernate-dev] v6 and load-event

2020-05-27 Thread Yoann Rodiere
Hi, > I think that's a great idea Same here! Another advantage is we separate the "SPI"/internal interface (Handler) from the API that can be implemented by users (listeners). That could be a great help moving forward to evolve Hibernate ORM without breaking APIs. > but I wonder about the reada