Re: [hibernate-dev] SQLServer getLimitString() refactoring

2012-06-14 Thread Demetz, Guenther
Hi Lukasz, >>Query "select id, description descr, (select max(id) from Product2) maximum >>from Product2" fails for me (even without paging) This is because HQL apparently does not support the suppression of the "AS" keyword for aliases, so this query works only by using the Native-SQL api. >

[hibernate-dev] Problems with Hibernate 4.1.3

2012-06-14 Thread Jochen Schreiber
Hello, i have some problems with Hibernate 4.1.3. Before Hibernate 4.1.3 i used Hibernate 3. 1. I don't found the "ResultSet"-Object as in Hibernate 3 so i want to get my data from the query as follows: SQLQuery q = MainWindow.getSession().createSQLQuery(query).addEntity("ins", ALL_RSC_DATA.

Re: [hibernate-dev] SQLServer getLimitString() refactoring

2012-06-14 Thread Łukasz Antoniak
Hello Steve/Guenther, @Steve: Thank you for clear explanation. Will create delegate interface and come back to you. Not sure if it would be backward compatible, have to check that :). > This is because HQL apparently does not support the suppression of the "AS" > keyword for aliases, so this que

Re: [hibernate-dev] SQLServer getLimitString() refactoring

2012-06-14 Thread Demetz, Guenther
Hi Lukasz, >>In the previous message you wrote: >>"Query q = session.createQuery( "select id, description descr, (select >>max(id) from MySequence) maximum from Product2 "); In this case HQL don't >>adds the "AS" keyword for the "descr" and "maximum" aliases, so >>stripAliases->>method & co coul

Re: [hibernate-dev] Typing Help with JPA 2.1 impl

2012-06-14 Thread Hardy Ferentschik
Hi, OOI, have you tried with the Java 7 compiler? I think there used to be a bug in the Java 6 compiler when it came to covariant return types. --Hardy On Jun 13, 2012, at 10:04 PM, Steve Ebersole wrote: > I realize I could split Join and Fetch into different hierarchies. > That is what I

Re: [hibernate-dev] Typing Help with JPA 2.1 impl

2012-06-14 Thread Steve Ebersole
Ah great point. No I have been compiling with JDK 1.6 On Thu 14 Jun 2012 04:45:27 AM CDT, Hardy Ferentschik wrote: > Hi, > > OOI, have you tried with the Java 7 compiler? I think there used to be a bug > in the Java 6 compiler > when it came to covariant return types. > > --Hardy > > > > On Jun

Re: [hibernate-dev] Typing Help with JPA 2.1 impl

2012-06-14 Thread Steve Ebersole
So I tried with JDK 1.7 and it worked fine. I am hoping we can get people to try this on different architecture/jdk combos so we can see where the issue boundaries are. I am running on Linux and using the Oracle JDKs: java version "1.6.0_30" java version "1.7.0_03" This does in fact seem to b

Re: [hibernate-dev] Typing Help with JPA 2.1 impl

2012-06-14 Thread Hardy Ferentschik
Using: JVM: 1.6.0_31 (Apple Inc. 20.6-b01-415) OS: Mac OS X 10.7.4 x86_64 I get: ant:javac] /Users/hardy/tmp/core/hibernate-jpa2.1-working/hibernate-entitymanager/src/main/java/org/hibernate/ejb/criteria/CollectionJoinImplementor.java:35: types org.hibernate.ejb.criteria.JoinImplementor and o

Re: [hibernate-dev] Typing Help with JPA 2.1 impl

2012-06-14 Thread Steve Ebersole
Interesting, once I got it compiled (using Java 7) I could then run the tests fine using Java 6 or 7. On Thu 14 Jun 2012 09:50:10 AM CDT, Hardy Ferentschik wrote: > Using: > > JVM: 1.6.0_31 (Apple Inc. 20.6-b01-415) > OS: Mac OS X 10.7.4 x86_64 > > I get: > > ant:javac] > /Users/hardy/tmp/core/

Re: [hibernate-dev] Question regarding method ReadWriteEhcacheNaturalIdRegionAccessStrategy#afterInsert

2012-06-14 Thread Alex Snaps
Hey Günther, I think your patch there makes sense. I will have a closer look though. Iirc we expect no entry, as the softlock should have been removed, right? I might be misremembering. I'm not the single author of all this neither. But I should be able to spend some time on that tomorrow est. curr