Dino
Dino

Reputation: 821

What is the role of HibernateUtil?

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?

Upvotes: 11

Views: 18018

Answers (1)

duffymo
duffymo

Reputation: 308803

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.

Upvotes: 9

Related Questions