aspose file tools*
The moose likes Spring and the fly likes Connecting Spring and Hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Connecting Spring and Hibernate" Watch "Connecting Spring and Hibernate" New topic
Author

Connecting Spring and Hibernate

Inshar Anas
Greenhorn

Joined: Apr 02, 2009
Posts: 21
Hi,
i want to know how to connect spring and hibernate. i have gone through some tutorials... but still have some problems with connecting to the database and executing sql queries..... please help me!
thanks!!!
Rajkumar balakrishnan
Ranch Hand

Joined: May 29, 2008
Posts: 445

What error you're getting. Please be precise while posting. Details like what error you got, in which code, etc will be posted here so that its easy for us to help you.

Also do read the Spring Documentation here. It'll clearly explains the Spring MVC and connectivity with ORM technologies like Hibernate, iBATIS etc.

It is more than enough to start with Spring and Hibernate........

Never try to be a hard-worker. Be a smart-worker.
My Blog
Inshar Anas
Greenhorn

Joined: Apr 02, 2009
Posts: 21
Hi Rajkumar ,
Thanks a lot for your link. Actually, i solved my problem. It was something wrong with jar files. And next time, i will make sure that i will post with the error code.
Do you have some sample code for connecting EJB3 and spring, please tell me.

regards,
Inshar
Rajkumar balakrishnan
Ranch Hand

Joined: May 29, 2008
Posts: 445

^^

Why you want to connect EJB3 with Spring???
Inshar Anas
Greenhorn

Joined: Apr 02, 2009
Posts: 21
Its an assignment (basically a CRUD application), where I have to use EJB, Spring and Hibernate and create my own framework. So, I need to work on that. I know that its pretty much easier with JPA and without spring.....
Do you have any suggestions for me???
Rajkumar balakrishnan
Ranch Hand

Joined: May 29, 2008
Posts: 445

Inshar Anas wrote:Its an assignment (basically a CRUD application), where I have to use EJB, Spring and Hibernate and create my own framework. So, I need to work on that. I know that its pretty much easier with JPA and without spring.....
Do you have any suggestions for me???


For a Basic CRUD Application using Spring 3 and Hibernate, you better visit my blog. I had written a tutorial which tells you how simple it is to play with Spring 3.
Inshar Anas
Greenhorn

Joined: Apr 02, 2009
Posts: 21
Thanks a lot dude!
take care!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Connecting Spring and Hibernate