Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the role of HibernateUtil?

Tags:

java

hibernate

I'm new to Hibernate, and everytime I come across a Hibernate tutorial there is a mention of HibernateUtil class ?

What actually does it do ? And if there is a standard implementation why don't it being included in Hibernate jar itself?

like image 586
Dino Avatar asked Feb 22 '11 13:02

Dino


1 Answers

There's an answer here that might suffice.

Looks like they want developers to write their own by design, because the number of possibilities to cover is too large.

like image 176
duffymo Avatar answered Oct 20 '22 14:10

duffymo