• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Spring & hibernate

 
Ranch Foreman
Posts: 22
1
Netbeans IDE Oracle Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are they use for?
Silly question of mine😅
 
Saloon Keeper
Posts: 10308
217
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Spring is a framework that solves a lot of common problems in web application development. When you use it, you can focus on writing your actual application, instead of writing all the plumbing that has to be done in every web application.

Hibernate is a framework that allows you to save objects to a database without having to write SQL queries.
 
Author
Posts: 109
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Deep question, Jasper! That said, Stephan's answer is hopefully a good start. Let me know if you want to know anything esle.
 
Bartender
Posts: 20838
125
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Spring Framework is a product that's designed to make software development more productive. At its heart, it relies on linking components together like TinkerToys™. This is primarily accomplished by 2 things:

1. A Bean Factory that constructs an initializes new instances of components (JavaBeans)

2. An Inversion of Control (IoC) mechanism that connects components together by injecting references into them.

The core framework is fairly compact, but over the years, a rather large circle of Spring component packages has emerged. For example, Spring Data deals with the management of persistable data. It provides a uniform mechanism where you can persist to SQL, NoSQL, and various other data storage types such as Neo4J, which unlike traditional RDBMS's worries more about the relations between data objects than the data objects themselves.

In addition to Spring data, there are numerous other components, with lots of sub-component options. For example, there are timing and scheduling services, mail services and lots more. Spring Web provides a MVC framework. Spring Security provides a standard security mechanism (because only an idiot develops their own security system if they're not trained full-time security people).

These component packages are well-documented, provide a more standardized interface and - most importantly - some other poor sucker has had to do all the work of designing, coding, and debugging them so you don't have to!


Hibernate is an Object Relational Management system. At one time there were quite a few ORM products, and they tended to be similar in function and features, but not interchangeable. When Sun created the Enterprise JavaBeans standard Version 3, however, the authors of Hibernate, along with many other industry groups formulated an ORM interface standard called Java Persistence Architecture (JPA). Although JPA is defined by the EJB3 standard, it doesn't require full EJB to function, which makes it especially useful in limited-stack servers like Tomcat, and even in non-web programs.

Hibernate isn't the only supplier of JPA. For example, the Apache OpenJPA project makes a JPA product as well. And Hibernate itself actually appears in 2 forms: legacy form (pre-JPA) and Hibernate JPA. While I encourage all new work to use Hibernate JPA, you'll see a lot of questions relating to legacy Hibernate here on the Ranch. Some people have old code to maintain. Some people have old books.
 
Jasper Abapo
Ranch Foreman
Posts: 22
1
Netbeans IDE Oracle Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Stephan, Marco and Tim.

Now I have the idea what are spring & hibernate used for and I'll be able to search and read about those on internet thanks to all of you!

@ Marco behler
Congrats on your book! 😊👍
Thank you very much! I'll ask right away when I have questions.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!