-3

I was wondering if there exists such thing as Java SE MVC framework. I've been confused about Hibernate and Spring, these 2 framworks are for Java EE web applications and i like to program in Java SE (Core) and was wondering if there exists MVC framework for it or if anyone can give a tutorial link how to build one in Java SE.

7
  • Spring is an MVC web framework. In the other hand, Hibernate is not an MVC framework nor even a web framework, is a data access framework and can be used in Java SE applications as well (yes, you can use Hibernate in a console application too). Commented Oct 8, 2012 at 2:00
  • But how is Hibernate different if its not MVC, it has some built in functions that can be used? Commented Oct 8, 2012 at 2:02
  • when would you use hibernate and when would you not, i mean for what kind of applications would you use hibernate? Commented Oct 8, 2012 at 2:03
  • can you do a Google and gain some basic understanding on what these two frameworks actually is, before asking here? Commented Oct 8, 2012 at 2:09
  • i did google search but could not find anything to the question when would you use hibernate framework. i do have basic understanding what they do Commented Oct 8, 2012 at 2:10

1 Answer 1

-2

Hibernate is an ORM Framework that maps objects to tables in a relational database. From the Hibernate Documentation:

Hibernate is an Object/Relational Mapping solution for Java environments. The term Object/Relational Mapping refers to the technique of mapping data between an object model representation to a relational data model representation. See http://en.wikipedia.org/wiki/Object-relational_mapping for a good high-level discussion.

Hibernate takes care of the mapping from Java classes to database tables, and from Java data types to SQL data types. In addition, it provides data query and retrieval facilities. It can significantly reduce development time otherwise spent with manual data handling in SQL and JDBC. Hibernate’s design goal is to relieve the developer from 95% of common data persistence-related programming tasks by eliminating the need for manual, hand-crafted data processing using SQL and JDBC. However, unlike many other persistence solutions, Hibernate does not hide the power of SQL from you and guarantees that your investment in relational technology and knowledge is as valid as always.

Spring MVC is a request-based framework that adheres to the MVC architecture. You can read more about it in the Spring MVC Documentation. I'd also recommend checking out the Spring in Action, 3rd Edition book to learn about the Spring Framework and Spring MVC.

Sign up to request clarification or add additional context in comments.

2 Comments

I don't understand how can this be an answer for OP question without explaining MVC framework in Java SE.
Note that while hibernate itself is not JavaEE, it has the capability of acting as a JPA Entity Manager, which makes it JavaEE compliant.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.