Re: [hibernate-dev] JDK 9 build 180 support

2017-08-01 Thread Davide D'Alto
Thanks Guillaume, I've already copied the latest build on CI but the Job are still using the previous one. Can I make the switch? On Mon, Jul 31, 2017 at 7:21 PM, Guillaume Smet wrote: > Hi, > > To support the latest JDK 9, you need to upgrade the enforcer and javadoc

[hibernate-dev] NoORM IRC meeting minutes

2017-08-01 Thread Guillaume Smet
Hi! Here are the minutes of today's NoORM meeting: 15:48 < jbott> Meeting ended Tue Aug 1 13:48:33 2017 UTC. Information about MeetBot at http://wiki.debian.org/MeetBot . (v 0.1.4) 15:48 < jbott> Minutes:

Re: [hibernate-dev] Difference between Comment and Hint in Hibernate query

2017-08-01 Thread Vlad Mihalcea
HI, I think I'll have to make it a little bit more clear in the docs as well. I Knew about Hibernate comments and assumed they could be used as hints. Now, that I look back on the Query API I see they were added in 4.3:

Re: [hibernate-dev] Difference between Comment and Hint in Hibernate query

2017-08-01 Thread Vlad Mihalcea
I created a new Pull Request so that comments can be handled for named queries (even for UPDATE/DELETE queries): https://github.com/hibernate/hibernate-orm/pull/1970 I think we should add two new issues; 1. So that we could pass Query Hints for Named (Native) Queries as well. Right now we can

Re: [hibernate-dev] PESSIMISTIC_FORCE_INCREMENT lock mode

2017-08-01 Thread Vlad Mihalcea
Sure. Send me a Pull Request and I'll integrate it. Vlad On Tue, Aug 1, 2017 at 2:29 PM, Arnold Gálovics wrote: > Hey Vlad, > > Thanks for the clarification. Do you think it worth mentioning this in the > docs? > > Best, > Arnold > > On Fri, Jul 28, 2017 at 6:17 PM,

Re: [hibernate-dev] Difference between Comment and Hint in Hibernate query

2017-08-01 Thread Vlad Mihalcea
I'm asking because the org.hibernate.annotations.NamedNativeQuery or org.hibernate.annotations.NamedQuery define the comment attribute with the following Javadoc: /** * A comment added to the generated SQL query. Useful when engaging with DBA. */ String comment() default ""; So, Hibernate

Re: [hibernate-dev] Difference between Comment and Hint in Hibernate query

2017-08-01 Thread Steve Ebersole
Query hints are hints for the database' s query parser/optimizer. A comment is a... well a comment :) On Tue, Aug 1, 2017, 6:37 AM Vlad Mihalcea wrote: > Hi, > > While working on integrating a Pull Request, I realized that the > org.hibernate.engine.spi.QueryParameters

Re: [hibernate-dev] Difference between Comment and Hint in Hibernate query

2017-08-01 Thread Steve Ebersole
They have different intentions and are potentially applied in different ways for different databases - hence separate. E.g. DB2 supports a query comment, but does not support optimizer hints... so these need to be handled differently On Tue, Aug 1, 2017, 8:19 AM Vlad Mihalcea

[hibernate-dev] Difference between Comment and Hint in Hibernate query

2017-08-01 Thread Vlad Mihalcea
Hi, While working on integrating a Pull Request, I realized that the org.hibernate.engine.spi.QueryParameters provides these two attributes: private String comment; private List queryHints; Both these two are to be sent to the database, so why do we have both? I also noticed that only for

Re: [hibernate-dev] PESSIMISTIC_FORCE_INCREMENT lock mode

2017-08-01 Thread Arnold Gálovics
Hey Vlad, Thanks for the clarification. Do you think it worth mentioning this in the docs? Best, Arnold On Fri, Jul 28, 2017 at 6:17 PM, Vlad Mihalcea wrote: > In MVCC, shared and exclusive are not as significant as in 2PL > concurrency control which only SQL Server

Re: [hibernate-dev] PESSIMISTIC_FORCE_INCREMENT lock mode

2017-08-01 Thread Steve Ebersole
Actually the spec is quite specific on the expected behavior of these lock modes, although it is very detailed and verbose almost to the point of being unclear. Also it is confusing to think of this in terms of generalized concepts such as "exclusive" versus "non-exclusive". Database locking

[hibernate-dev] CI Updates

2017-08-01 Thread Davide D'Alto
Hello, I'm going to update Jenkins next Monday, I'll do my best to keep the downtime to a minimum but, because there are several plugins to update, I expect some disruption. I'll do my best to keep it at a minimum The exact date is going to be the 6th of August. Thanks, Davide