Hibernate 5.2.10 Maven Dependency code
Developers from Hibernate team is actively working on the development of this framework and due to their efforts new version Hibernate 5.2.10 is released on 14 April 2017. In this section we will see how to use Hibernate 5.2.10 Maven Dependency in a Java Project.
If you are not using maven then you should download zip package and then use in you project. But the most preferred way to use any Java library is through maven build tool. Maven make easy to use Hibernate 5.2.10 Maven Dependency in your project.
Hibernate version 5.2.10 come with new features and bug fixes.
New features in Hibernate version 5.2.10
- Add the getResultStream() default method in org.hibernate.query.Query
- ANTLR parser should fail when providing an extra parenthesis
There are many improvements in this version of Hibernate. Here are few features:
- Added truncate feature in HSQLDialect
- Prevention to generate duplicate Foreign Key
- More examples added for Hibernate annotation
If you want to use the JDK 8 features in your project then include following in pom.xml file:
<dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-java8</artifactId> <version>5.1.0.Final</version> </dependency>
Hibernate 5 maven dependency code
Hibernate 5 dependency can be easily included in Java project by just adding following dependency in pom.xml file:
<dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-core</artifactId> <version>5.2.10.Final</version> </dependency>
If you are using Gradle build tool then add following code:
compile group: 'org.hibernate', name: 'hibernate-core', version: '5.2.10.Final'
After adding this dependency Gradle build tool will download add jar files and include it in your project.
This way you can add Hibernate 5.2.10 Maven Dependency in Java based project.
You can learn Hibernate 5 on our website and following is the links:
Check all the Hibernate 5 tutorials.
Learning Hibernate is much easier with our tutorials. We have large collection of Hibernate tutorials supported with many example projects. You will find many video tutorials of Hibernate on our website.
Here are the latest tutorials of Hibernate:
- Hibernate 5 Features
- Download Hibernate 5
- Hibernate 5 Annotation Example
- How to create SessionFactory in Hibernate 5?
- Hibernate 5 build SessionFactory Example
Hibernate 5 Envers
- Example of Hibernate 5 Envers
- How to get all revisions in Hibernate Envers?
- Hibernate envers custom revinfo table example
Check all the Hibernate Tutorials for beginners.