Compatible Spring dependency for Hibernate 4.3.5.Final - java

I am using Hibernate in my application and now there is a need of upgrading to the latest version of Hibernate(now its 4.3.5.Final) and I have to integrate it with Spring.
Now my question is that which version of Spring is compatible with Hibernate 4.3.5.Final or which latest version of hibernate is compatible with Spring 4.x version.
FYI: During my search I found this SO link which tells that how to know the Spring and Hibernate version comparability. And according to that I opened spring-orm Maven POM and found that with spring-orm: 4.0.5.RELEASE I can use hibernate-core: 4.2.12.Final and hibernate-core: 3.6.10.Final among these only hibernate-core: 3.6.10.Final is working. Then how can I solve this problem of version conflicts.

Related

Upgrade springboot version from 2.4.7 to 2.6.3 on a project generated by JHipster

I have generated a project using jHipster 7.1.0 which created an application (monolith) without client for me using springboot version 2.4.7
With recent times after release of new versions of spring I would like to upgrade and fix dependencies of spring to 2.6.3
Even though I update the springVersion in pom.xml I don't see the change of version when I start the project. Any information will be of great help.
You should check jhipster-dependencies and upgrade it ! The spring boot version comes with this dépendancy.
implementation platform("tech.jhipster:jhipster-dependencies:${jhipster_dependencies_version}" )

Springboot - spring-boot-starter-data-cassandra-reactive using custom Cassandra Driver version

How to configure Springboot 2.4.2 to use the 4.10 Cassandra driver please?
Currently, a Springboot 2.4.2 will pull by default the spring-boot-starter-data-cassandra-reactive 2.4.2 version as well, which depends on the 4.9 version of the Cassandra driver.
I tried overriding at the pom level by importing the 4.10 Cassandra driver, but the app still starts with the 4.9 version.
.d.o.d.i.core.DefaultMavenCoordinates : DataStax Java driver for Apache Cassandra(R) (com.datastax.oss:java-driver-core) version 4.9.0
How to configure Springboot 2.4.2 to use the 4.10 Cassandra driver please?
Thank you
I'm using this configuration. You need to update your pom.xml with the new java-drive- core version 4.12.0. You can check this link to copy the dependency: https://mvnrepository.com/artifact/com.datastax.oss/java-driver-core .
Somenting very important is to check the all the Compile Dependencies' version (18) that you use and update too. Update the maven dependency in your project. If it still show this message, you can delete the dependency fisically. If you are using the Eclipse's IDE, you can find the ...\.m2\repository the respective java-drive-core 4.9.0 and delete it.
This version 4.12.0 have new features so nice. I recommend you use it.

Jasypt hibernate 5 support?

I'm upgrading a Spring project's Spring version5.1.5.RELEASE which requires an upgrade to Hibernate 5.
I checked the jasypt maven repo but it doesn't seem to have a Hibernate 5 supported version yet.
What's the way to get around this? I don't even know if a Spring 5.x compatible jasypt is on its way.
Edit: I have already checkout out this github repo and have opened an issue on it. I couldn't get it to compile.
jasypt hibernate support is officially available now, here's a link to its maven repo.

Spring hibernate compatibility with spring boot 2.1.x

I am trying to upgrade spring boot from 1.5.x to 2.1.1 (latest) in our java based enterprise web application. It seems that starting spring boot version 2.1.0, spring requires hibernate to be above version 5.x. We get the following error otherwise with hibernate version 4.3.5
Caused by: java.lang.ClassNotFoundException: org.hibernate.boot.model.naming.PhysicalNamingStrategy
Till spring boot release 2.0.0, the application worked well with hibernate version 4.3.5. This naming strategy change was introduced in hibernate version 5.
We cannot upgrade hibernate right now. Is there a workaround that we can apply with the latest spring boot upgrade to 2.1.x?

ApacheCXF 3.1.4 and Spring 4.2.4 compatability

I am trying to upgrade my libraries: ApacheCXF 2.7.7 --> 3.1.4. Spring 2.5.5 --> 4.2.4.
My Hudson build keeps failing because it cannot find packages/classes, org.springframework.context.ApplicationContext, for example. The classpath in cxf-manifest.jar, as part of ApacheCXF, refers specifically to Spring 4.1.7 jars.
I've tried loading both Spring 4.1.7 and 4.2.4 versions, but no joy. (Is loading multiple lib versions even possible?).
I've tried removing cxf-manifest.jar from the classpath/buildpath. Eclipse is happy with that and it finds the desired classes in the Spring 4.2.4 jars, but Hudson is still not happy.
I've considered moving to Spring 4.1.7, but I don't see the point of upgrading partially.
Is ApacheCXF 3.1.4 specifically incompatible with Spring 4.2.4? And how would I get Hudson to be happy with the upgraded libraries?
Turns out that I forgot to add the specific directory containing the Spring jars to my build.xml script.
ApacheCXF 3.1.4 IS compatible with Spring 4.2.4
Edit: Apparently I was wrong.

Categories

Resources