Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to integrate spring and hibernate with eclipse

I have installed eclipse with integrated glassfish server. now i don't know how to install hibernate and spring into eclipse. any ideas?


1 Answers

You don't need to install spring or hibernate in eclipse to use it!

Spring and Hibernate are frameworks which can be used in applications. Eclipse is only the IDE to write the code.

If you want to have support in Eclipse to write Hibernate and Spring Configuration files, you need some eclipse plugins:

  • Eclipse Dali JPA Tools wich are part of Eclipse WTP and part of the Eclipse Java EE package or Hibernate Tools
  • Spring IDE or Spring Tool Suite

In general I recommend to use the Spring Tool Suite, it is based on Eclipse (3.6.1 for STS 2.5.2) Java EE (so it contains the JPA tools) and contains the Spring IDE plugin and some other Spring related tools.

BTW: STS contains a wizzard to create some simple Spring applications with just a few clicks.

like image 55
Ralph Avatar answered Dec 30 '25 16:12

Ralph



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!