Re: [hibernate-dev] JDBC uses ON_CLOSE connection release mode

2016-03-23 Thread Vlad Mihalcea
I made the change for 4.2. For 5.0, we should switch to the current 5.1 documentation because the 5.0 User Guide lacks a lot of information. It requires adding the asciidoc documentation, Gradle configs, and also change the release procedure to use asciidoc instead of docbook. Should we add a new

[hibernate-dev] Multi-table Bulk id strategy using Common Table Expressions

2016-03-23 Thread Vlad Mihalcea
Hi, I found a very interesting solution for the Bulk id multi-table strategy for those cases when the DB management policy forbids creating Temporary Tables. This situation is documented in this Forum post: https://forum.hibernate.org/viewtopic.php?f=1&t=1043080&p=2489096#p2489096 After doing so

Re: [hibernate-dev] ORM 5.1.1-SNAPSHOT JdbcConnectionAccessConnectionProviderImpl gets a "java.sql.SQLException: IJ031017: You cannot set autocommit during a managed transaction" error on WildFly...

2016-03-23 Thread Scott Marlow
On 03/22/2016 03:31 PM, Scott Marlow wrote: > I ran the wildfly testsuite with ORM 5.1.1-SNAPSHOT and get $subject > failure http://pastebin.com/BcyaKYbw. Not bad to see only one failure :-) Failing test with configuration is at https://github.com/wildfly/wildfly/blob/master/testsuite/integrati

Re: [hibernate-dev] Multi-table Bulk id strategy using Common Table Expressions

2016-03-23 Thread Steve Ebersole
How does one reference a CTE across multiple deletes via JDBC? A CTE, by definition, is available only during the execution of a single query. In most databases you "work around" that by grouping statements into a block (GO, BEGIN/END etc). This is what JDBC poorly attempt to mimic with Prepared

Re: [hibernate-dev] [OGM] Retrieve byte[] as streams in MongoDB

2016-03-23 Thread Emmanuel Bernard
Seent means seen or sent? If the latter we found one of your secret identities ;) On Tue 2016-03-22 11:13, Davide D'Alto wrote: > Hi, > I've seent this question on stack overflow and I was wondering if there is > any way to do what he asks: > http://stackoverflow.com/questions/36134440/mongodb-get

Re: [hibernate-dev] [OGM] Any idea for OGM-1000?

2016-03-23 Thread Emmanuel Bernard
Is ScenicDrive captured? On Tue 2016-03-22 11:29, Davide D'Alto wrote: > Next JIRA will be OGM-1000, any interesting idea we should use for this > ticket? > > Cheers, > Davide > ___ > hibernate-dev mailing list > hibernate-dev@lists.jboss.org > https://

Re: [hibernate-dev] [OGM] Retrieve byte[] as streams in MongoDB

2016-03-23 Thread Davide D'Alto
Damn, you discovered my secret identity :) (I meant "seen" by the way) On Wed, Mar 23, 2016 at 5:18 PM, Emmanuel Bernard wrote: > Seent means seen or sent? If the latter we found one of your secret > identities ;) > > On Tue 2016-03-22 11:13, Davide D'Alto wrote: > > Hi, > > I've seent this que

Re: [hibernate-dev] Multi-table Bulk id strategy using Common Table Expressions

2016-03-23 Thread Vlad Mihalcea
The CTE is bound to the currently executing query. It takes the ids that need otherwise would be in a temporary table and feeds them using the VALUES() expression. It's interesting the reason for doing so: "reducing concurrency on system tables every time Postgresql creates temp tables". I'd have t

Re: [hibernate-dev] [OGM] Any idea for OGM-1000?

2016-03-23 Thread Sanne Grinovero
On 23 March 2016 at 17:18, Emmanuel Bernard wrote: > Is ScenicDrive captured? Interesting. You suggest that ScenicDrive is a feature of OGM ? > > On Tue 2016-03-22 11:29, Davide D'Alto wrote: >> Next JIRA will be OGM-1000, any interesting idea we should use for this >> ticket? >> >> Cheers, >> D

Re: [hibernate-dev] [OGM] Any idea for OGM-1000?

2016-03-23 Thread Gunnar Morling
Hi, That's a very good question and we need to decide. In the PoC I'm working on, I started from scratch in a separate project for some reasons: * I wanted to have a clean slate, not being influenced by the complexity and patterns living in existing grid dialects * Freedom to use Java 8 with Lam

Re: [hibernate-dev] [OGM] Any idea for OGM-1000?

2016-03-23 Thread Sanne Grinovero
On 23 March 2016 at 18:37, Gunnar Morling wrote: > Hi, > > That's a very good question and we need to decide. > > In the PoC I'm working on, I started from scratch in a separate project for > some reasons: > > * I wanted to have a clean slate, not being influenced by the complexity and > patterns

[hibernate-dev] Using Java8 language features in OGM/HotRod

2016-03-23 Thread Sanne Grinovero
TLRD: don't be surprised if I'll be sending some rather large code style fixes. Not wasting my time nor intending to waste yours.. I've been writing quite some code enjoying Java 8 specific features in the new OGM module, as I assumed this would not be an issue at all since Hot Rod requires Java8

Re: [hibernate-dev] Using Java8 language features in OGM/HotRod

2016-03-23 Thread Gunnar Morling
+1 for fixing these things, I also was wondering about some apparent style violations which CS failed to report. Must have been these bug fixes then. The only thing coming to my mind is Davide's work which may change things in the existing Neo4j code. Maybe you two quickly sync? Apart from that I'

Re: [hibernate-dev] Using Java8 language features in OGM/HotRod

2016-03-23 Thread Davide D'Alto
Yeah, go with it. I don't think it is going to be too hard to fix the conflicts in the Neo4j module. >TLRD: Did you mean: TLDR; On Wed, Mar 23, 2016 at 7:02 PM, Gunnar Morling wrote: > +1 for fixing these things, I also was wondering about some apparent style > violations which CS failed to r

Re: [hibernate-dev] Using Java8 language features in OGM/HotRod

2016-03-23 Thread Sanne Grinovero
On 23 March 2016 at 19:07, Davide D'Alto wrote: > Yeah, go with it. > I don't think it is going to be too hard to fix the conflicts in the Neo4j > module. Ok, thanks: - https://hibernate.atlassian.net/browse/OGM-1001 > >>TLRD: > > Did you mean: TLDR; probably. Or make you doubt, so to make you

Re: [hibernate-dev] Using Java8 language features in OGM/HotRod

2016-03-23 Thread Davide D'Alto
> probably. Or make you doubt, so to make you read it all.. The trick is to put it at the end :) (TLDR; = Too Long, Didn't Read;) On Wed, Mar 23, 2016 at 7:12 PM, Sanne Grinovero wrote: > On 23 March 2016 at 19:07, Davide D'Alto wrote: > > Yeah, go with it. > > I don't think it is going to b

Re: [hibernate-dev] [OGM] Any idea for OGM-1000?

2016-03-23 Thread Davide D'Alto
I like the name ScenicView, but it seems there is already a project using it: http://fxexperience.com/scenic-view/ StrikingView? On Wed, Mar 23, 2016 at 6:48 PM, Sanne Grinovero wrote: > On 23 March 2016 at 18:37, Gunnar Morling wrote: > > Hi, > > > > That's a very good question and we need to

Re: [hibernate-dev] JDBC uses ON_CLOSE connection release mode

2016-03-23 Thread Gail Badner
I noticed there is some information in 4.2 docs that are not in 5.0. I'm not sure what happened there. Is there info in the 5.1 docs that does not apply to 5.0? If so, is there a way to easily exclude it? I don't know what all is involved in backporting the docs. If it can be done safely and excl

Re: [hibernate-dev] JDBC uses ON_CLOSE connection release mode

2016-03-23 Thread Vlad Mihalcea
The 4.x branches contain the old documentation, the one that was written with Hibernate 3 in mind. The new documentation work was started in 5.0 but we only got it done in 5.1, so 5.0 doesn't contain all the additions we made to the new documentation. I can backport it for sure, but I don't know