Re: [hibernate-dev] Native query and auto-flush

2014-10-30 Thread Steve Ebersole
Guillaume, it depends unfortunately. In distributed cases, checking the status of a transaction could mean remote calls. That's why I was saying I'd rather not have the unnecessary overhead if not needed. On Thu, Oct 30, 2014 at 9:51 AM, Guillaume Smet wrote: > On Thu, Oct 30, 2014 at 2:56 PM,

Re: [hibernate-dev] Native query and auto-flush

2014-10-30 Thread Guillaume Smet
On Thu, Oct 30, 2014 at 2:56 PM, Steve Ebersole wrote: > Personally having entities dirtied as part of a read-only transaction sounds > like an application bug to me. We could try to detect a read-only > transaction state (not sure how we'd do that across all cases) and > circumvent the flush the

Re: [hibernate-dev] Native query and auto-flush

2014-10-30 Thread Steve Ebersole
Personally having entities dirtied as part of a read-only transaction sounds like an application bug to me. We could try to detect a read-only transaction state (not sure how we'd do that across all cases) and circumvent the flush there, but that would add unnecessary overhead to applications that