Re: [hibernate-dev] Java 6, 7 and 8... oh my!

2015-03-31 Thread Gunnar Morling
Hi, Can you share the exact exception/error you get when using the generated model with Java 6? The required() attribute already exists as of Java 6 [1]. You should be able to make the generated code Java 6 compatible by either setting the right options for XJC (the JAXB code generator) or in the

[hibernate-dev] Release YML

2015-03-31 Thread Steve Ebersole
For today's release I added a YML file to both staging staging and verified that the staging site picked it up properly. I then pushed it to the production branch, but it is not being displayed there. Any idea why? https://github.com/hibernate/hibernate.org/blob/production/_data/projects/orm/rel

Re: [hibernate-dev] Trying Hibernate 5.0.0.Beta1

2015-03-31 Thread Steve Ebersole
Those messages are not errors, just warnings. To be precise... Not sure about that constraint one. Would need more info. On Tue, Mar 31, 2015 at 7:18 PM, Petar Tahchiev wrote: > Hi all, > > just to confirm - I tried it with java8 and the exception is gone. I still > see the "Duplicate joins f

Re: [hibernate-dev] Trying Hibernate 5.0.0.Beta1

2015-03-31 Thread Steve Ebersole
Just to clarify... I *think* that as long as we run the build with Java 8 and set the bootclasspath to 6 or 7 we should be fine. On Tue, Mar 31, 2015 at 7:13 PM, Steve Ebersole wrote: > Well the idea is to run the Gradle process with Java 8 (the build itself > is a Java process too don't forget

Re: [hibernate-dev] Java 6, 7 and 8... oh my!

2015-03-31 Thread Sanne Grinovero
I wouldn't disagree on requiring Java 7. I probably wouldn't disagree with Java 8 either, after all we're not removing older versions of Hibernate from any download location and we'll still support and maintain some older versions. It would actually be nice to have the latest ORM version to be able

Re: [hibernate-dev] Trying Hibernate 5.0.0.Beta1

2015-03-31 Thread Petar Tahchiev
Hi all, just to confirm - I tried it with java8 and the exception is gone. I still see the "Duplicate joins for class.." error, as well as a new foreign key exception: WARN : SQL Error: 1452, SQLState: 23000 ERROR: Cannot add or update a child row: a foreign key constraint fails (`solarapparel`.`

Re: [hibernate-dev] Trying Hibernate 5.0.0.Beta1

2015-03-31 Thread Steve Ebersole
Well the idea is to run the Gradle process with Java 8 (the build itself is a Java process too don't forget). We pass in the older JDK specifically to be able to set the bootclasspath for compilation and the executable for running tests. That's the theory. Interestingly I developed a simplified

[hibernate-dev] Java 6, 7 and 8... oh my!

2015-03-31 Thread Steve Ebersole
So we now have to deal with a multi-jdk build in Hibernate ORM. We need Java 8 in order to compile the new hibernate-java8 module. I wanted to remain compatible with Java 6 for the rest. However, I ran into a snag there because of JAXB which we now use (in conjunction with StAX) to process XML i

Re: [hibernate-dev] Trying Hibernate 5.0.0.Beta1

2015-03-31 Thread Sanne Grinovero
There are many similar issues discussed on the Lucene developer's mailing list, it's an interesting read: - http://mail-archives.apache.org/mod_mbox/lucene-dev/201503.mbox/%3C07c401d06aba%240b477c80%2421d67580%24%40thetaphi.de%3E I see no alternative than to have those test jobs actually exercis

Re: [hibernate-dev] Trying Hibernate 5.0.0.Beta1

2015-03-31 Thread Steve Ebersole
And no that's not a typo :) It's JDK6_HOME, but you pass it a Java 7 jdk :) On Tue, Mar 31, 2015 at 6:56 PM, Steve Ebersole wrote: > Actually this may have been a brain-fart on my part when building the > release. I think I may have forgotten to pass in the Java 6 JDK to the > build, which I u

Re: [hibernate-dev] Trying Hibernate 5.0.0.Beta1

2015-03-31 Thread Steve Ebersole
Actually this may have been a brain-fart on my part when building the release. I think I may have forgotten to pass in the Java 6 JDK to the build, which I use to set the javac bootclasspath. So in that case it would have used the bootclasspath from the Java 8 JDK I used to launch gradle. If you

[hibernate-dev] The current Hibernate Search sprint: lots of topics!

2015-03-31 Thread Sanne Grinovero
All, let me clarify the general goal of this sprint. I don't expect to celebrate with a 5.2.0.Final this time, but I'd aim at getting some of the long standing big tasks done, and finish these three weeks with a 5.2.Beta1. We need to organize in several parallel significant themes. There are some

Re: [hibernate-dev] Trying Hibernate 5.0.0.Beta1

2015-03-31 Thread Steve Ebersole
Ahh, seems this may be an option to work around it: Using the general *Map* interface in place of the concrete *ConcurrentHashMap* type here side-steps the coupling to the Java 8 return type and will allow this code to be compiled with Java 8 and run on Java 7. I had missed that part. On Tue,

Re: [hibernate-dev] Trying Hibernate 5.0.0.Beta1

2015-03-31 Thread Steve Ebersole
When I say "internal" here, I mean internal to java classes. On Tue, Mar 31, 2015 at 6:30 PM, Steve Ebersole wrote: > Nope. It just effects any code compiled with Java 8 even though the > change is internal. The problem is the generated bytecode incorporates > this change. Like I said, this

Re: [hibernate-dev] Trying Hibernate 5.0.0.Beta1

2015-03-31 Thread Steve Ebersole
Nope. It just effects any code compiled with Java 8 even though the change is internal. The problem is the generated bytecode incorporates this change. Like I said, this should be compiled with 1.6 compatibility, but that is apparently not working atm. I am having a struggle getting a mixed JD

Re: [hibernate-dev] Trying Hibernate 5.0.0.Beta1

2015-03-31 Thread Petar Tahchiev
According to this: https://gist.github.com/AlainODea/1375759b8720a3f9f094 Notably the Java 1.7 *ConcurrentHashMap#keySet()* returns a Set while the 1.8*ConcurrentHashMap#keySet()* returns a ConcurrentHashMap.KeySetView`. I think you're using some Java8 API. 2015-04-01 2:25 GMT+03:00 Petar Tahc

Re: [hibernate-dev] Trying Hibernate 5.0.0.Beta1

2015-03-31 Thread Steve Ebersole
So this should have been compiled for 1.6 compatibility (although Java 7 is required really as I mentioned). Looks like that maybe did not work. Try running with Java 8 On Tue, Mar 31, 2015 at 6:25 PM, Petar Tahchiev wrote: > petar@petar-ThinkPad-X1-Carbon:~$ java -version > java version "1.7.

Re: [hibernate-dev] Trying Hibernate 5.0.0.Beta1

2015-03-31 Thread Steve Ebersole
BTW, thanks for adopting this and trying it! On Tue, Mar 31, 2015 at 6:21 PM, Steve Ebersole wrote: > What JRE are you trying to use? This error: > > java.lang.NoSuchMethodError: java.util.concurrent. > ConcurrentHashMap.keySet()Ljava/util/concurrent/ > ConcurrentHashMap$KeySetView; > > is indi

Re: [hibernate-dev] Trying Hibernate 5.0.0.Beta1

2015-03-31 Thread Petar Tahchiev
petar@petar-ThinkPad-X1-Carbon:~$ java -version java version "1.7.0_71" Java(TM) SE Runtime Environment (build 1.7.0_71-b14) Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode) petar@petar-ThinkPad-X1-Carbon:~$ uname -a Linux petar-ThinkPad-X1-Carbon 3.16.0-33-generic #44-Ubuntu SMP Thu

Re: [hibernate-dev] Trying Hibernate 5.0.0.Beta1

2015-03-31 Thread Steve Ebersole
What JRE are you trying to use? This error: java.lang.NoSuchMethodError: java.util.concurrent.ConcurrentHashMap.keySet() Ljava/util/concurrent/ConcurrentHashMap$KeySetView; is indicative of an issue in cross-jre support due to a change internal to java classes. On Tue, Mar 31, 2015 at 6:03 PM,

Re: [hibernate-dev] Trying Hibernate 5.0.0.Beta1

2015-03-31 Thread Petar Tahchiev
Yeah, too late though.. I need some sleep :)) 2015-04-01 2:18 GMT+03:00 Steve Ebersole : > So then you also noticed that I replied to him :) > > Jean-Baptiste Nizet > Awesome, > thanks for trying it out! I have noticed that occ

Re: [hibernate-dev] Trying Hibernate 5.0.0.Beta1

2015-03-31 Thread Steve Ebersole
So then you also noticed that I replied to him :) Jean-Baptiste Nizet Awesome, thanks for trying it out! I have noticed that occasionally too wrt HHH72, but have been so heads down trying to get ready for the 5.0.0 Beta rele

Re: [hibernate-dev] Trying Hibernate 5.0.0.Beta1

2015-03-31 Thread Petar Tahchiev
BTW, I see here: https://hibernate.atlassian.net/browse/HHH-8844 that Jean-Baptiste Nizet commented he also gets these "Duplicate joins for class" warnings: - - unrelated: I get a warning for **every** entity that I didn't get with Hibernate 4, which is not very clear and seems like a

Re: [hibernate-dev] Trying Hibernate 5.0.0.Beta1

2015-03-31 Thread Petar Tahchiev
Thanks Steve, I managed to migrate my configuration to the new MetamodelImplementor. Now when I run the scema export I get a lot of these warning: INFO : HHH000400: Using dialect: org.hibernate.dialect.MySQL5Dialect WARN : JDBC Driver reports it stores quoted identifiers in both mixed and upper c

Re: [hibernate-dev] Trying Hibernate 5.0.0.Beta1

2015-03-31 Thread Steve Ebersole
I am told that the bug does not affect the JBoss->Central sync process. So at some point the artifacts should all be available in Central On Tue, Mar 31, 2015 at 5:19 PM, Steve Ebersole wrote: > hibernate-core seems to be the only artifact that is available in JBoss > Nexus. > > On Tue, Mar 31,

Re: [hibernate-dev] Trying Hibernate 5.0.0.Beta1

2015-03-31 Thread Steve Ebersole
hibernate-core seems to be the only artifact that is available in JBoss Nexus. On Tue, Mar 31, 2015 at 5:18 PM, Steve Ebersole wrote: > So apparently the artifacts / repo issue is a Nexus bug that is effecting > the JBoss repo (and therefore us)... > http://issues.sonatype.org/browse/NEXUS-7654

Re: [hibernate-dev] Trying Hibernate 5.0.0.Beta1

2015-03-31 Thread Steve Ebersole
So apparently the artifacts / repo issue is a Nexus bug that is effecting the JBoss repo (and therefore us)... http://issues.sonatype.org/browse/NEXUS-7654 As I pointed out in the announcement, I am managing the "migration guide" in source repo while I develop the Betas. See https://github.com/hi

[hibernate-dev] Trying Hibernate 5.0.0.Beta1

2015-03-31 Thread Petar Tahchiev
Hi guys, I just tried the latest beta and I cannot compile my project. With the latest hibernate 4.3.X I was able to do this: --- final org.hibernate.cfg.Configuration configuration = getHibernateConfiguration(); configuration.buildMappings(); final SchemaUpdate schemaU

Re: [hibernate-dev] Hibernate ORM 5.0.0.Beta1 release

2015-03-31 Thread Steve Ebersole
It is in the JBoss repo now, which automatically syncs to Maven central. Nothing new there. It does seem that there is a problem though with JBoss's Nexus (I know, imagine that...). I am trying to follow up with the folks that manage the JBoss Nexus. On Tue, Mar 31, 2015 at 4:14 PM, Petar Tahch

[hibernate-dev] [Hibernate Search] Repository Notice: migrating Infinispan integration

2015-03-31 Thread Sanne Grinovero
All, please do not make changes (or propose patches) to any sources for the Maven module org.hibernate:hibernate-search-infinispan In other words, anything under the path /infinispan in the repository. We're currently working to move this module to the Infinispan project, at the following rep

Re: [hibernate-dev] Hibernate ORM 5.0.0.Beta1 release

2015-03-31 Thread Petar Tahchiev
Which maven repo is it in? 2015-04-01 0:08 GMT+03:00 Steve Ebersole : > Just released 5.0.0.Beta1 : > http://in.relation.to/Bloggers/HibernateORM500Beta1Release > ___ > hibernate-dev mailing list > hibernate-dev@lists.jboss.org > https://lists.jboss.org

[hibernate-dev] Hibernate ORM 5.0.0.Beta1 release

2015-03-31 Thread Steve Ebersole
Just released 5.0.0.Beta1 : http://in.relation.to/Bloggers/HibernateORM500Beta1Release ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev