Hibernate framework
Hibernate framework is an object/relational mapping library (ORM) for the Java language. It provides a object/relational persistence query service. With hibernate, you can map an object-oriented domain model to a traditional relational database. It is an open source product developed by Red Hat. Data is one of the most valuable assets a company has, and with Hibernate you can put it to good use in Java applications. In this section on Hibernate, get news, research, and tutorials on the Hibernate framework and read tips and advice to find out how it can help your applications make the best use of the data available.
Top Stories
-
Tutorial
30 Mar 2022
An example of how suppressed exceptions in Java work
Don't ignore suppressed exceptions. In this quick tutorial we show you how to anticipate when code will throw suppressed exceptions, along with the best practices to handle them. Continue Reading
By- Cameron McKenzie, TechTarget
-
Video
30 Sep 2020
A HibernateUtil class example to simplify JPA code
Developers can use HibernateUtil to mitigate access to JPA EntityManager and create more readable, less resource intensive code for data-driven applications. Continue Reading
By- Cameron McKenzie, TechTarget
-
Video
30 Sep 2020
A HibernateUtil class example to simplify JPA code
Developers can use HibernateUtil to mitigate access to JPA EntityManager and create more readable, less resource intensive code for data-driven applications. Continue Reading
By- Cameron McKenzie, TechTarget
-
Blog Post
02 Aug 2020
An example hibernate.cfg.xml for MySQL 8 and Hibernate 5
Hibernate 5 has updated dialects for various databases, and MySQL 8 has a special one of its own. Here's an example hibernate.cfg.xml for MySQL 8 for Hibernate 5 apps or newer. Continue Reading
By- Cameron McKenzie, TechTarget
-
Blog Post
02 Aug 2020
Build a Hibernate SessionFactory by example
Hibernate SessionFactory tutorial If a developer uses the Hibernate core framework, they will need to build a SessionFactory before they can do any data persistence. As the name implies, the ... Continue Reading
By- Cameron McKenzie, TechTarget
-
Video
29 Jul 2020
How JPA EntityManager handles Hibernate transaction management
Follow this JPA EntityManager persist example tutorial to see how it can be used for transaction management and how to save changes to the database. Continue Reading
By- Cameron McKenzie, TechTarget
-
Blog Post
28 Jul 2020
The right MySQL persistence.xml example file for JPA 2.2 and Hibernate 5
Old JDBC drivers and new MySQL 8 databases don't mesh. Here's an updated MySQL persistence.xml example file for those doing JPA and Hibernate development. Continue Reading
By- Cameron McKenzie, TechTarget
-
Video
26 Jun 2020
3 ways to have JPA and Hibernate create tables in a database
JPA frameworks such as Hibernate can automatically create tables. Here are three ways to have JPA and Hibernate create tables in a database. Continue Reading
By- Cameron McKenzie, TechTarget
-
Video
25 Jun 2020
Simple database integration with the JPA persistence.xml file
The persistence.xml file plays a significant role in all facets of JPA-based application development. Examine the file's properties for a simple configuration to ease development. Continue Reading
By- Cameron McKenzie, TechTarget
-
Video
12 Jun 2020
Create a distraction free JPA and Hibernate dev environment
A minimalistic approach is the way to go for development with Hibernate and JPA. Create a development environment with only the basics -- a JDK, Hibernate and a text editor -- to get started. Continue Reading
By- Cameron McKenzie, TechTarget
-
Blog Post
01 Apr 2020
Quickly fix the MySQL MyISAM type SQLSyntaxErrorException for Hibernate
https://youtu.be/d0AJKtPgx3M There's nothing worse for a developer than an SQLException in Hibernate and JPA. And there's nothing more annoying than when the SQLException happens before any of the ... Continue Reading
By- Cameron McKenzie, TechTarget
-
Video
20 Dec 2019
JDBC tutorial: Easy installation and setup with Apache Derby
New database developers can get up to speed with this tutorial on JDBC and Apache Derby. Follow these steps to install and connect to the Derby database on your terminal. Continue Reading
By- Cameron McKenzie, TechTarget
-
Video
28 Jun 2019
Hibernate vs. JDBC: How do these database APIs differ?
Don't overthink it. Hibernate and JDBC aren't the same thing. But how do these database APIs differ? Here's a brief history lesson and explainer to find out. Continue Reading
By- Cameron McKenzie, TechTarget
-
Blog Post
25 Jun 2019
Hibernate vs JPA: What's the difference between them?
Let us settle the Hibernate vs JPA debate for you. Here we explain the difference between JPA and Hibernate so that you'll never have to choose between the two database APIs. Continue Reading
By- Cameron McKenzie, TechTarget
-
Blog Post
13 Jun 2018
JPA and Hibernate enum mapping with annotations and the hbm.xml file
Ever since they were introduced in Java 5, enums have been catching developers off guard. How do you perform JPA and Hibernate enum mapping with annotations or even XML files? It's actually not ... Continue Reading
By- Cameron McKenzie, TechTarget
-
Tip
17 Apr 2018
How JPA and Hibernate simplify data persistence
JPA is the Java standard for data persistence, especially for relational systems. Here, we explore how Hibernate and JPA work together to make database processes easier. Continue Reading
By -
Feature
18 May 2015
The challenge of managing distributed data can only be solved with NoSQL solutions
Managing data over large geographic areas where latency and reliability problems exist is a major challenge for relational databases, but fortunately, NoSQL databases are solving the problem of managing distributed data. Continue Reading
By- Asha Raman
-
Tutorial
04 May 2015
How to invoke a JSF managed bean asynchronously through JavaScript
Sometimes great frameworks like JSF, Wicket or Spring MVC make simple tasks surprisingly difficult to do. With JavaServer Faces, the simple task of invoking a method on a managed bean is actually a bit of a chore. In this tutorial, we tackle that chore together. Continue Reading
By- Cameron McKenzie, TechTarget
-
Podcast
09 Mar 2015
What we can expect from Hibernate OGM and data persistence in 2015
Emmanuel Bernard discusses the Hibernate OGM project and how it has progressed since it was initially envisioned back in 2011. Continue Reading
By- Cameron McKenzie, TechTarget
-
Tutorial
07 Sep 2014
Advanced JSF Tutorial: The single page interface (SPI) with Facelets, Ajax and HTML5
Some say it's impossible, but if you really understand the technology, you will realize that creating a single page interface (SPI) with JSF, Facelets, Ajax and HTML really isn't all that hard. In fact, JavaServer Faces makes it pretty easy! Continue Reading
By- Cameron McKenzie, TechTarget
-
Tutorial
31 Aug 2014
JSF Tutorial: Completing the Ajax based Facelets application
If you're using JSF, you're probably using Facelets, and if you're creating modern web based applications, you'll likely want to use Ajax based request-response cycles. Here we conclude our tutorial on JavaServer Faces, Facelets and Ajax based programming. Continue Reading
By- Cameron McKenzie, TechTarget
-
Feature
25 Aug 2014
Comparing of the cloud storage Titans: Amazon S3 versus Microsoft Azure
There are many vendors out there fighting for your cloud based storage space, with the two biggest being Microsoft Azure and Amazon's S3 offering. Here we compare the two to help you figure out which cloud storage solution is right for you. Continue Reading
-
Tutorial
20 Jul 2014
Integrating Ajax into your Facelets pages: Death to JSF's request-response cycle
If you're doing Facelets development, this might be the most important tutorial you will ever read. It will explain to you how to throw out that annoying request-response cycle, and explain how to integrate Ajax based JSF components with a dynamically re-rendering Facelets page snippet. Continue Reading
By- Cameron McKenzie, TechTarget
-
Tutorial
20 Jul 2014
Creating pages based on a JSF template: Using the Facelets ui:define tag
What do you do once you've set up a handsome page template using the Facelets functions that come with JSF 2.x? Well, you start creating new pages, meshing those ui:define tags in with ui:composition and ui:insert. It's easier than it sounds, trust me. Continue Reading
By- Cameron McKenzie, TechTarget
-
Tutorial
19 Jul 2014
Turning a web page into a JSF 2.0 template with Facelets
How do you take a web page and turn it into a template using Facelets as the template engine? It takes some JSF, some HTML, maybe some CSS, and lots of JSF UI tags, but overall, it's an easy and simple process if you follow this tutorial. Continue Reading
By- Cameron McKenzie, TechTarget
-
Tutorial
17 Feb 2014
Tutorial: Coding a simple Rock Paper Scissors application in JavaScript
Rock, paper scissors, or Rashambo as it is called in some circles, is a simple game that most people understand, which makes it a great scenario for learning how to program in JavaScript. Continue Reading
By- Cameron McKenzie, TechTarget
-
Tip
04 Oct 2013
Annotation versus XML configuration: Which JPA option to choose?
A common debate in the JPA community is whether to configure applications using an XML or annotations based approach. Here are some reasons why you might want to choose XML instead. Continue Reading
By- Lukas Stewart
-
Tip
04 Oct 2013
Simplified ORM configuration with Spring, JPA and Hibernate path scanning
Configuring Spring, JPA, Hibernate or other ORM technologies can be a challenge. One way to simplify ORM configuration is to configure package scanning for entity classes. Continue Reading
By- Lukas Stewart
-
Tutorial
27 Jul 2013
JSR-286 development tutorial: Linking back to the portal with the PortletURL
In this JSR-286 development tutorial we look at the PortletURL and the challenge developers face when trying to link back to the portal, a portal page or a given portlet instance. Continue Reading
By- Sal Pece
-
Feature
21 Jul 2013
JSR-286 portlet development tutorial and technology guide
This JSR-286 Portlet Development Tutorial and Technology Guide is designed to help enterprise Java professionals gain the knowledge they need to excel in the emerging portal and portlet development space. Continue Reading
By- Cameron McKenzie, TechTarget
-
Feature
14 Jul 2013
Hibernate still leads the way with search, envers and multitenancy support
A great deal of features have been added to the JPA 2.1 specification, but Hibernate still leads the way with features surrounding search, envers and multitenancy support. Continue Reading
By- Cameron McKenzie, TechTarget
-
Tip
30 Jun 2013
How to get the Hibernate Session from the JPA 2.0 EntityManager
This tip shows you how to get the Hibernate Session from the JPA EntityManager so you can perform functions only available from the JBoss Hibernate project. Continue Reading
By- Cameron McKenzie
-
News
24 Jun 2013
The JPA 2.0 EntityManager vs. the Hibernate Session: Which one to use?
The question for data persistence experts using JPA 2.0 is whether they should be using the EntityManager or the Hibernate Session from JBoss for ORM. Continue Reading
-
Feature
10 Jan 2013
How NoSQL, MySQL and MongoDB worked together to solve a big-data problem
Choosing between schemaless NoSQL databases and strong-schema relational designs isn't an either-or decision, as this case study points out. When dealing with their big data problem, Craigslist decided that their MySQL servers could use a little help from MongoDB, and putting the two technologies together created a better system with greater availability, scalability and performance. Continue Reading
By- Cameron McKenzie, TechTarget
-
Feature
23 Aug 2012
How cloud computing is impacting enterprise Java developers
How do cloud computing technologies impact the day-to-day development patterns of typical Java developers? Continue Reading
By- Cameron McKenzie, TechTarget
-
Feature
01 Jun 2012
Scaling Web applications with Scala, Clojure and Groovy
Scaling Web applications written in Java can be difficult due to thread concurrency and locking issues. However, immutable peripheral languages like Scala, Groovy, and Clojure can make scaling up more feasible. Continue Reading
By- Cameron McKenzie, TechTarget
-
Feature
31 May 2012
Why Java applications fail to scale linearly: A simple explanation
The process of scaling up Java applications often runs into the problem of diminishing returns, where adding another processor no longer adds significant benefit. Why won't Java programs scale? Here's your answer. Continue Reading
By- Cameron McKenzie, TechTarget
-
Feature
30 May 2012
Java EE 7 migration: Risk mitigation strategies
Some enterprise Java shops are weighing the risks of a migration to Java EE 7 against the potential benefits, which are incremental and cloud focused. Continue Reading
By -
Tip
26 Jan 2012
Java 7 and the intricacies of safe and unsafe casting
One of the problems with casting is that it does have the potential to cause a loss of precision, especially if the number that gets cast does indeed fall outside of the range of the target type. Here we will explain why this happens. Continue Reading
By- Cameron McKenzie and Sal Pece
-
Feature
26 Jan 2012
Has Computer Programming Really Changed Much Since Lovelace's Time?
Everyone always talks about these new computer programming languages, and how great one is over the other. But really, has computer programming really changed that much over time? Continue Reading
By- Cameron McKenzie, TechTarget
-
Tutorial
12 Jan 2012
New Java 7 Features: How to Use a More Precise Rethrow in Exceptions from Project Coin
Afficionados of other languages such as Scala or Clojure are always slagging the fact that Java is too verbose and cumbersome. So, it's not too surprising to find out that Java 7 introduced a number of new facilities that can help to trim down the code an application developer is required to write. Continue Reading
By- Sal Pece
-
News
02 Sep 2011
Problems with ORMs
Object Relational Mapping tools like Hibernate have helped developers make huge productivity gains in dealing with relational databases in the past several years. However, the well-documented problems with object-relational impedance mismatch inevitably cause headaches for developers. There are a few approaches and styles to using ORMs which have various pros and cons. Continue Reading
-
Tip
17 Aug 2011
Spring Ehcache integration (Second-level caching in Hibernate)
Integrating Ehcache with Spring-based applications is actually fairly easy. Let's look at this integration with a sample BuddyManagement application. Continue Reading
By- Nirupa Katare
-
News
15 Aug 2011
Hibernate gotchas
When you don't work with a given technology for a while, you often find yourself doing the same mistakes time and time again. So, here is a sort of watch list for Hibernate: The Hibernate Gotchas! Continue Reading
-
Tip
22 Jul 2011
Choosing Java frameworks for performance
Frank Cohen, CEO and founder of PushToTest, presents a round-up of opinions on which Java frameworks deliver a light-weight, RIA-based, high developer productivity platform. What do you think? Read the full conversation and join in. Continue Reading
-
Tutorial
23 Jun 2010
Hibernate 3.5 Without Hibernate: Migrating to the Java Persistence API
Here we look at using the Hibernate framework as our persistence mechanism, but only referencing the JPA libraries in our code. This way, your persistence code is not bound to the vendor that implements your persistence architecture. Continue Reading
By- Andrew Tee & Cameron McKenzie
-
Tutorial
22 Jun 2010
Creating DAOs with Hibernate 3.5 & JPA 2.0 Annotations
This tutorial will help you learn how to create good DAO components that can be easily integrated into a Spring based application. This tutorial concentrates on the Data Access Objects. The next lesson will deal with Spring 3 integration. Continue Reading
By- Andrew Tee & Cameron McKenzie
-
Tutorial
21 Jun 2010
Using Hibernate 3.5 as a JPA 2.0 Persistence Implementation
Are you interested in JPA 2.0, and you want to use Hibernate as your implementation? This tutorial shows you how easy it is to take your JPA annotated components and use the Hibernate 3.5 as your implementation. Continue Reading
-
Tutorial
20 Jun 2010
Hibernate 3.5 without JPA and Annotations: The Good Old Hibernate Mapping File
This tutorial takes a look at how we can map entities and properties to database tables and columns using Hibernate 3.5 and the traditional mapping file instead of JPA 2.0 annotations. Continue Reading
By- Andrew Tee & Cameron McKenzie
-
Tutorial
20 Jun 2010
Slingshot Yourself Into Hibernate 3.5 and JPA 2.0 with this Tutorial
Get up to speed with Hiberante 3.5 and JPA 2.0 with this quick tutorial that will get you up and running, without any supurfluous talk or banter. If you want to learn Hibernate and JPA 2.0 quickly, this is the tutorial you need. Continue Reading
By- Andrew Tee & Cameron McKenzie
-
Tip
26 May 2010
Learn Hibernate Quickly: Simplified Java Persistence with Hibernate & JPA
Learn Hibernate Quickly: Simplified Java Persistence with Hibernate & JPA, covering both Hibernate 3.2.x and the JPA 2.0 compliant Hibernate 3.5. Continue Reading
By- Cameron McKenzie, TechTarget
-
News
01 May 2009
Remote Lazy Loading in Hibernate
Lazy loading in Hibernate means fetching and loading the data, only when it is needed, from a persistent storage like a database. Lazy loading improves the performance of data fetching and significantly reduces the memory footprint. Continue Reading
By- Premkumar Rajendran
-
News
01 Sep 2006
Hibernate 3.1 Used with Tomcat 5.5.x
There have been a number of changes in Tomcat configuration as the Tomcat version advanced from Tomcat 5.0 through version 5.5.x. These changes have affected Tomcat JNDI setup, which in turn has affected Hibernate, assuming you wish your Hibernate installation to take advantage of the DataSource facility made available from Tomcat JNDI. Continue Reading
By- Bill Treuman and Igor Dayen
-
News
01 Apr 2005
Unit-Testing Hibernate With HSQLDB
Unit-testing should have as few barriers as possible. For relational databases those barriers range from external dependencies to speed to keeping the relational schema synchronized with your object model. For these reasons it is vital to keep database access code away from the core object model and to test as much as possible without touching a real database. Continue Reading
By- Alex Vollmer
-
News
01 Mar 2005
Hibernate vs. Rails: The Persistence Showdown
Of particular interest is ORM (Object Relational Mapping) tool, ActiveRecord. Since choosing a technology always involves opportunity costs of some kind, I have written this article to compare and contrast with another popular ORM tool, Hibernate. It summarizes what I've learned about Rails, mainly by stacking it up against Hibernate. Continue Reading
By- Patrick Peak
-
News
12 Dec 2004
Internationalized Data in Hibernate
We've seen a few people using internationalized reference data where labels displayed in the user interface depend upon the user's language. It's not immediately obvious how to deal with this in Hibernate, and I've been meaning to write up my preferred solution for a while now. Continue Reading
By- Gavin King