How-to Quick-Start with Hibernate on Ubuntu 16.04 Xenial LTS

May 13th, 2017 by thelinuxevangelist

Getting-Started with Hibernate on Ubuntu




Hello Ubuntu User! This Tutorial Shows You Step-by-Step How-to Install and Getting-Started with Hibernate Java ORM on Ubuntu 16.04 Xenial Xerus LTS 32/64bit GNU/Linux.

Hibernate is a Persistence Framework that bridge the worlds of Java objects and Relational Databases with an ORM.

With Hibernate we First Create an Ordinary POJO Class and then a XML File Mapping between the Class and the Database’s Tables.

Hibernate Use this same XML Mapping also to Create Automatically the Database Tables and Columns Involved in the process.

There are Severals Ways to Get Installed the Hibernate Framework on a Java App and here I use the Easiest one by the Maven Java Tool.

Now I think it is pointless to Remember you how the Java Application’s Development requires an Oracle JDK installation on System.

How-to Quick-Start with Hibernate on Ubuntu 16.04 Xenial LTS - Featured
  1. Open a Terminal Shell emulator window
    Ctrl+Alt+t on Desktop
    (Press “Enter” to Execute Commands)

    How-to Quick-Start with Hibernate on Ubuntu 16.04 Xenial LTS - Open Terminal Shell Emulator
  2. How-to Install Latest Apache Maven on Ubuntu:

    Maven Installation for Ubuntu
  3. Edit the Project’s pom.xml File
    Append something like:

  4.     
        mysql    
        mysql-connector-java    
        6.0.6  
       
        
        org.hibernate    
        hibernate-core    
        5.2.10.Final  
    
    

    Check for MySQL Java Connector & Hibernate Versions on:

    Maven Repository Search
  5. Then to Install Hibernate on the Project

    mvn install
  6. How-to Getting-Started with Hibernate Framework

    Hibernate Getting-Started Guide

Tags: , , , , , , , , , , , , , , , , , , ,