File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Object Relational Mapping and the fly likes New in Hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "New in Hibernate" Watch "New in Hibernate" New topic

New in Hibernate

Sumit Bisht
Ranch Hand

Joined: Jul 02, 2008
Posts: 331

I am new in Hibernate development and am getting trouble in getting all required files in my maven repository.
Can anyone suggest me/give links to get a hibernate project up and running?
Do i need further tools/classpath settings/jarfiles ?
Jaikiran Pai

Joined: Jul 20, 2005
Posts: 10441


I will move this to our ORM forum.

[My Blog] [JavaRanch Journal]
Cristian Vrabie
Ranch Hand

Joined: Jul 09, 2008
Posts: 71
Sumit, are you using hibernate directly with your project or are you using a IoC container like Spring?

If is just Hibernate you will probably need

If you use it with Spring you will need

On top of these you will also need a connection pool:
I use:

Then you will need to create a data source that uses the connection pool then inject it to hibernate. Spring helps a lot. You can do this in a few lines of xml. I suggest you have a look if you don't use it already.
Cristian Vrabie
Ranch Hand

Joined: Jul 09, 2008
Posts: 71
I agree. Here's the link:
subject: New in Hibernate
It's not a secret anymore!