Re: [hibernate-dev] 2LC docs

2016-01-25 Thread Radim Vansa
On 01/22/2016 05:26 PM, Steve Ebersole wrote: > On Fri, Jan 22, 2016 at 9:30 AM Radim Vansa > wrote: > > On 01/22/2016 03:11 PM, Steve Ebersole wrote: > > On Fri, Jan 22, 2016 at 7:21 AM Radim Vansa > >

Re: [hibernate-dev] 2LC docs

2016-01-25 Thread Vlad Mihalcea
Hi, I have some sequence diagrams depicting the async/sync behavior if you are interested: For async: NONSTREICT_READ_WRITE and READ_WRITE: http://vladmihalcea.com/2015/05/18/how-does-hibernate-nonstrict_read_write-cacheconcurrencystrategy-work/ http://vladmihalcea.com/2015/05/25/how-does-hibern

Re: [hibernate-dev] 2LC docs

2016-01-25 Thread Radim Vansa
I wish the docs were as descriptive as your blog - thanks Vlad! (so, I should make that happen). So I (hopefully) finally understand what you mean by sync/async: * sync implements only certain methods from the *RegionAccessStrategy and the two-phase commit requires TM calling 2LC directly (eithe

Re: [hibernate-dev] 2LC docs

2016-01-25 Thread Radim Vansa
On 01/25/2016 11:48 AM, Radim Vansa wrote: > On 01/22/2016 05:26 PM, Steve Ebersole wrote: >> On Fri, Jan 22, 2016 at 9:30 AM Radim Vansa > > wrote: >> >> On 01/22/2016 03:11 PM, Steve Ebersole wrote: >> > On Fri, Jan 22, 2016 at 7:21 AM Radim Vansa >

Re: [hibernate-dev] 2LC docs

2016-01-25 Thread Vlad Mihalcea
Thanks. Well, the User Guide must detail the API and focus on general usage. We don't want to scare users with internal details that are more useful in a Developer Guide or Integrator Guide. So we must find the right balance for what info we supply in the User Guide. Vlad On Mon, Jan 25, 2016 at

[hibernate-dev] HHH-9993 - IsolationDelegate + no-Connection

2016-01-25 Thread Steve Ebersole
HHH-9993[1] is a request to extend IsolationDelegate to cater for transaction hooks which do not need access to a JDBC Connection. A quick primer for those unfamiliar, IsolationDelegate is a contract to allow work to be done in a fashion that makes sure it is isolated from the main Session transac

Re: [hibernate-dev] HHH-8076 - CDI-capable entity listeners

2016-01-25 Thread Sanne Grinovero
I checked : - Hibernate OGM - Hibernate Search - Hibernate Validator - WildFly And none are using the listeners you listed. In the case of WildFly, I don't know of course about all the frameworks which are included in there. Sanne On 22 January 2016 at 23:58, Steve Ebersole wrote: > Anyone

[hibernate-dev] HHH-9548 - StoredProcedureQuery and parameter-specific hints

2016-01-25 Thread Steve Ebersole
HHH-9548[1] handles the question of what to do with null/unset parameter values in regards to calls to stored-procedures via JPA's StoredProcedureQuery contract. Do we just want to live with the overhead that comes from my last comment[2]? Another option I see would be an extension to javax.persi

Re: [hibernate-dev] HHH-8076 - CDI-capable entity listeners

2016-01-25 Thread Steve Ebersole
I have been in constant discussion with Scott about this. I developed proposal after my discussions with him. Ultimately we believe the solution is an extension to CDI. I developed this with that in my mind's eye. Scott will be taking my work so far and trying to finish it (do the WildFly piece

Re: [hibernate-dev] 2LC docs

2016-01-25 Thread Steve Ebersole
+1. I think we need to generally understand a user guide and an integration guide. Very different audiences. On Mon, Jan 25, 2016 at 6:22 AM Vlad Mihalcea wrote: > Thanks. Well, the User Guide must detail the API and focus on general > usage. > We don't want to scare users with internal detail

Re: [hibernate-dev] [hibernate-orm] HHH-7572 - Develop API for load-by-multiple-ids (#1136)

2016-01-25 Thread Steve Ebersole
Minor detail wrt method naming... Actually performing a org.hibernate.MultiIdentifierLoadAccess is currently achieved via a method named `#multiLoad`. The name was chose because originally I wanted this to live on IdentifierLoadAccess and so the `multi` part was needed to distinguish it from the

Re: [hibernate-dev] [hibernate-orm] HHH-7572 - Develop API for load-by-multiple-ids (#1136)

2016-01-25 Thread Sanne Grinovero
I like "multiLoad". Makes the intent more explicit, as the method could be abused by passing lists of singleton identifiers. On 25 January 2016 at 18:21, Steve Ebersole wrote: > Minor detail wrt method naming... > > Actually performing a org.hibernate.MultiIdentifierLoadAccess is currently > achi

Re: [hibernate-dev] HHH-9548 - StoredProcedureQuery and parameter-specific hints

2016-01-25 Thread andrea boriero
do you mean to extend javax.persistence.Parameter with a sort of enablePassingNulls() method? On 25 January 2016 at 17:56, Steve Ebersole wrote: > HHH-9548[1] handles the question of what to do with null/unset parameter > values in regards to calls to stored-procedures via > JPA's StoredProcedur

Re: [hibernate-dev] HHH-9548 - StoredProcedureQuery and parameter-specific hints

2016-01-25 Thread Steve Ebersole
Right On Mon, Jan 25, 2016 at 12:41 PM andrea boriero wrote: > do you mean to extend javax.persistence.Parameter with a sort > of enablePassingNulls() method? > > On 25 January 2016 at 17:56, Steve Ebersole wrote: > >> HHH-9548[1] handles the question of what to do with null/unset parameter >>

Re: [hibernate-dev] HHH-9548 - StoredProcedureQuery and parameter-specific hints

2016-01-25 Thread andrea boriero
I like it On 25 January 2016 at 18:50, Steve Ebersole wrote: > Right > > On Mon, Jan 25, 2016 at 12:41 PM andrea boriero > wrote: > >> do you mean to extend javax.persistence.Parameter with a sort >> of enablePassingNulls() method? >> >> On 25 January 2016 at 17:56, Steve Ebersole wrote: >> >>

Re: [hibernate-dev] [hibernate-orm] HHH-7572 - Develop API for load-by-multiple-ids (#1136)

2016-01-25 Thread Steve Ebersole
I am about to push all this upstream. It now includes a hook through EntityPersister via a newly added method and "parameter object": List multiLoad(Serializable[] ids, SessionImplementor session, MultiLoadOptions loadOptions); MultiLoadOptions encapsulates the information configured on MultiIde

Re: [hibernate-dev] [hibernate-orm] HHH-7572 - Develop API for load-by-multiple-ids (#1136)

2016-01-25 Thread Sanne Grinovero
Looks good! Time for us to put it to good use.. Thanks On Mon, 25 Jan 2016 19:10 Steve Ebersole wrote: > I am about to push all this upstream. It now includes a hook through > EntityPersister via a newly added method and "parameter object": > > List multiLoad(Serializable[] ids, SessionImplemen

Re: [hibernate-dev] HHH-8076 - CDI-capable entity listeners

2016-01-25 Thread Steve Ebersole
BTW... there is also discussion of a delayed approach that would be based on a setting. This setting would essentially tell Hibernate to delay CDI access until first use of a Listener. I had resisted this approach because it delays "deployment errors" (exceptions that really ought to stop the dep

Re: [hibernate-dev] [hibernate-orm] HHH-7572 - Develop API for load-by-multiple-ids (#1136)

2016-01-25 Thread Konstantin Bulanov
Hello Steve, now it looks great. Thank you. 2016-01-25 23:09 GMT+04:00 Steve Ebersole : > I am about to push all this upstream. It now includes a hook through > EntityPersister via a newly added method and "parameter object": > > List multiLoad(Serializable[] ids, SessionImplementor session, >