[hibernate-dev] [OGM] @Column and embedded objects in OGM

2016-01-06 Thread Emmanuel Bernard
Hey guys, Marco found something that really surprised him. I am not sure if that’s a widespread behavior or just specific to CouchDB’s backend. @Entity class A { … B embedded; } @Embeddable class B { String c; @Column(name=“real_d”) d; } The document structure is roughly { …

Re: [hibernate-dev] should immutable entities in the second level cache be invalidated when they are removed from the database?

2016-01-06 Thread Radim Vansa
On 01/05/2016 06:51 PM, Scott Marlow wrote: > On 01/05/2016 12:36 PM, Steve Ebersole wrote: >> Sorry Scott, I am not sure I understand exactly what you are asking. I >> will try to answer what I think you are asking as best I can.. >> >> >> On Tue, Jan 5, 2016 at 9:35 AM Scott Marlow >

Re: [hibernate-dev] [OGM] @Column and embedded objects in OGM

2016-01-06 Thread Gunnar Morling
Hi, Yes, I noticed this some time ago, too. It's tracked by https://hibernate.atlassian.net/browse/OGM-893. As it stands, I don't think it's fixable using the ORM ImplicitNamingStrategy/PhysicalNamingStrategy contracts: The former doesn't apply for explicitly given names, the latter lacks the req

[hibernate-dev] HHH-10307 - JTA dependency

2016-01-06 Thread Steve Ebersole
HHH-10307[1] is another issue we need to get some consensus on. Initially we had removed JTA as a transitive dependency, but that is not really valid. We need to discuss alternatives and options. [1] https://hibernate.atlassian.net/browse/HHH-10307 ___

[hibernate-dev] Hibernate forum inactive users pruning

2016-01-06 Thread Vlad Mihalcea
Hi, Among all 75000 registered users, 1 used to be inactive ones (registered without any post). Regular users are always creating an account and post at least one question on the forum, so there is no reason why we should keep 13 years old user accounts that haven't posted anything on the for

Re: [hibernate-dev] Hibernate forum inactive users pruning

2016-01-06 Thread Steve Ebersole
Awesome! Although I find it strange that a mere 13% decrease in the number of registered users would have such a big impact on overall performance of the forum. On Wed, Jan 6, 2016 at 9:53 AM Vlad Mihalcea wrote: > Hi, > > Among all 75000 registered users, 1 used to be inactive ones > (regi

Re: [hibernate-dev] Hibernate forum inactive users pruning

2016-01-06 Thread Vlad Mihalcea
There must have been some checks probably when the Home page was rendered, but you can check it out and see the result. I wish I could find a way to delete banned users too. My banning routine goes like this: 1. I ban the email address or the whole domain if it's one of those temporary email doma

Re: [hibernate-dev] HHH-10307 - JTA dependency

2016-01-06 Thread Gunnar Morling
To get some clarification: When using solely JDBC, what is required at runtime: a) the JTA API packages only b) JTA API and implementation c) none of the above ? 2016-01-06 16:12 GMT+01:00 Steve Ebersole : > HHH-10307[1] is another issue we need to get some consensus on. Initially > we had re

Re: [hibernate-dev] HHH-10307 - JTA dependency

2016-01-06 Thread Steve Ebersole
(a) just the api On Wed, Jan 6, 2016 at 10:20 AM Gunnar Morling wrote: > To get some clarification: When using solely JDBC, what is required at > runtime: > > a) the JTA API packages only > b) JTA API and implementation > c) none of the above > > ? > > > > 2016-01-06 16:12 GMT+01:00 Steve Ebers

Re: [hibernate-dev] HHH-10307 - JTA dependency

2016-01-06 Thread Vlad Mihalcea
Hi, Since the Hibernate core relies on the JTA dependency, I think we shouldn't provide that dependency. When someone doesn't want it he should explicitly mark that (e.g. Maven exclude). This way we can also address the parent issue: https://hibernate.atlassian.net/browse/HHH-10178 Vlad On Wed,

Re: [hibernate-dev] HHH-10307 - JTA dependency

2016-01-06 Thread Steve Ebersole
Vlad, the issue is not "someone doesn't want it". In fact, for the most part because of our decision to use the JTA contracts in our API "(not) wanting it" is not really an option. The issue here is the proliferation of JTA jars (maven coords). We have the Geronimo jars, the JBoss/WildFly jars,

Re: [hibernate-dev] HHH-10307 - JTA dependency

2016-01-06 Thread andrea boriero
Hi Vlad, you mean we should provide that dependency, don't you? On 6 January 2016 at 16:30, Vlad Mihalcea wrote: > Hi, > > Since the Hibernate core relies on the JTA dependency, I think we shouldn't > provide that dependency. > When someone doesn't want it he should explicitly mark that (e.g. M

Re: [hibernate-dev] HHH-10307 - JTA dependency

2016-01-06 Thread Vlad Mihalcea
I thought it was just the javax dependency. Supplying all those Java EE AS dependency is something else, as you pointed out. Adding some separate modules with those dependencies is not an option either: hibernate-wildfly, hibernate-geronimo, etc? Vlad On Wed, Jan 6, 2016 at 6:36 PM, Steve Eberso

Re: [hibernate-dev] HHH-10307 - JTA dependency

2016-01-06 Thread Steve Ebersole
There is nothing "EE AS" specific in any of those jars I mentioned. They are all simply different jars of the JTA API. Every EE spec has the same problem. That is the point you are missing. TBH I forget the history as to why the JBoss's JTA jar (again, nothing JBoss specific there, just the JTA

Re: [hibernate-dev] HHH-10307 - JTA dependency

2016-01-06 Thread Gunnar Morling
I can see how users working with JDBC exclusively can be surprised by the fact that the JTA API is still needed. I think it boils down to these options: 1) Push back the need for JTA types to the case of actually using JTA (e.g. by splitting up the CoreMessageLogger interface etc.) In my experien

Re: [hibernate-dev] HHH-10307 - JTA dependency

2016-01-06 Thread Steve Ebersole
The JTA API is a tiny jar. I am not so concerned with "users working with JDBC exclusively" being "surprised" that JTA is needed. JTA's Synchronization is a well understood pattern. On Wed, Jan 6, 2016 at 11:22 AM Gunnar Morling wrote: > I can see how users working with JDBC exclusively can be

Re: [hibernate-dev] HHH-10307 - JTA dependency

2016-01-06 Thread Steve Ebersole
I'll put it this way Gunnar, as a user would you prefer: 1) org.hibernate.Transaction#addCallback( org.hibernate.TransactionCallback ) 2) org.hibernate.Transaction#addCallback( javax.transaction.Synchronization ) ? On Wed, Jan 6, 2016 at 11:34 AM Steve Ebersole wrote: > The JTA API is a tiny

Re: [hibernate-dev] HHH-10307 - JTA dependency

2016-01-06 Thread Gunnar Morling
I'd prefer 1). The less dependencies I need, the better. 2016-01-06 18:36 GMT+01:00 Steve Ebersole : > I'll put it this way Gunnar, as a user would you prefer: > > 1) org.hibernate.Transaction#addCallback( org.hibernate.TransactionCallback > ) > 2) org.hibernate.Transaction#addCallback( javax.tran