Hibernate 5.1 with jinq-hibernate-legacy

18 views
Skip to first unread message

Oddgeir B

unread,
Nov 15, 2018, 10:53:47 AM11/15/18
to Jinq
Hi,
I would like to use jinq with our wildfly 11 project (which uses hibernate 5.1), but it seems to require Hibernate version 5.2?
At least version 1.8.24 failed because it expected a different package for the Query class, which changed with Hibernate 5.2.
Tried to randomly use version 1.8.19 of jinq-hibernate-legacy, and that seems to work. But then we loose out on all the new features and fixes...
Using maven.

Jinq

unread,
Nov 15, 2018, 11:12:38 AM11/15/18
to Jinq
I did upgrade to Hibernate 5.2 in order to implement support for the new time APIs, but it wasn't my intention to break support for Hibernate 5.1 in doing so. I'll take a look to see if it's possible to reenable support for Hibernate 5.1 later in the week.

Jinq

unread,
Nov 16, 2018, 3:03:24 AM11/16/18
to Jinq
Funnily enough, JBoss somehow wrote Hibernate 5.2 so that it's source compatible with Hibernate 5.1 but it's not backwards binary compatible with Hibernate 5.1. 

The Jinq code can be compiled against both Hibernate 5.1 and 5.2. But when it's compiled against Hibernate 5.2, it won't work with Hibernate 5.1. When it's compiled against Hibernate 5.1, then I think it will work with Hibernate 5.2, but I don't think Maven provides a way for Jinq to be compiled against Hibernate 5.1 but then use Hibernate 5.2 for testing.

You may just have to recompile your own version of Jinq using the earlier version of Hibernate.

Oddgeir B

unread,
Nov 16, 2018, 3:20:54 AM11/16/18
to Jinq
OK, thank you.
We may do that.

Reply all
Reply to author
Forward
0 new messages