Re: [hibernate-dev] Bytecode enhancement and collections

2015-09-10 Thread Steve Ebersole
That depends on the "allow lazy loading outside transaction" setting, much like how the outcome of `myEntity.getChildren().size()` depends on same in the proxy solution. If that is allowed, then the call will build the collection (from a "temporary Session", just like the proxy solution works) and

Re: [hibernate-dev] Bytecode enhancement and collections

2015-09-10 Thread Scott Marlow
On 09/10/2015 09:45 AM, Steve Ebersole wrote: > Wanted to get some opinions. I am working on HHH-10055 which is basically > a report of problems with that "lazy loading outside of a > session/transaction" feature when used in combination with bytecode > enhancement. The initial problem was that

Re: [hibernate-dev] Consistency guarantees of second level cache

2015-09-10 Thread Steve Ebersole
Yes, and maybe in general you allow users to pick between such a strict/nonstrict mode. On Thu, Sep 10, 2015 at 2:47 AM Radim Vansa wrote: > On 09/09/2015 06:16 PM, Steve Ebersole wrote: > > Some comments inline and then a general discussion at the end... > > > > On Wed, Sep 9, 2015 at 10:32 AM

[hibernate-dev] Bytecode enhancement and collections

2015-09-10 Thread Steve Ebersole
Wanted to get some opinions. I am working on HHH-10055 which is basically a report of problems with that "lazy loading outside of a session/transaction" feature when used in combination with bytecode enhancement. The initial problem was that bytecode interception was not accounting for collection

Re: [hibernate-dev] HQL and spatial

2015-09-10 Thread Steve Ebersole
> > It is true that not all applications use spatial, or even that DB’s > support (all) spatial functions. But it would help to ensure consistency in > the available dialects. Now this consistency is tested for in the > integration tests, so not having this at the grammar isn’t a big problem. > It

Re: [hibernate-dev] [HSEARCH] Usefulness of index sharing

2015-09-10 Thread Sanne Grinovero
Hi Martin, sorry for the late reply, I found this email of yours in my spam folder. On 12 August 2015 at 16:43, Martin Braun wrote: > Hi, > > > I guess it's useful in some edge cases where the user wants to search > different entities with one query. As long as everything is in the same index > s

Re: [hibernate-dev] Consistency guarantees of second level cache

2015-09-10 Thread Radim Vansa
On 09/09/2015 06:16 PM, Steve Ebersole wrote: > Some comments inline and then a general discussion at the end... > > On Wed, Sep 9, 2015 at 10:32 AM Radim Vansa > wrote: > > Thanks for correcting the terms, I'll try to use 'isolation'. > > TX2 reading B = 1 is not