• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Connecting Spring and Hibernate

 
Inshar Anas
Greenhorn
Posts: 21
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 445
Android Eclipse IDE Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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........
 
Inshar Anas
Greenhorn
Posts: 21
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 445
Android Eclipse IDE Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
^^

Why you want to connect EJB3 with Spring???
 
Inshar Anas
Greenhorn
Posts: 21
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 445
Android Eclipse IDE Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 21
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot dude!
take care!
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic