Solved

Difference between a HibernateMapping class, DAO class and Model class

Posted on 2006-10-20
6
842 Views
Last Modified: 2008-03-10
Hi people,

What's the difference between a Hibernate mapping class, DAO class and a Model class?
0
Comment
Question by:blaze_wk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
6 Comments
 
LVL 9

Expert Comment

by:shinobun
ID: 17781192
Where did you get those terms?  I don't think mapping is a class, unless you're talking about the actual implementation of Hibernate...
0
 

Author Comment

by:blaze_wk
ID: 17782832
Yes I'm talking about the actual implementation of Hibernate. And in there I understand that we have to modify some XML files, and also create a class that would have the gettters and setters. I understand there's more to it as well.
0
 
LVL 9

Accepted Solution

by:
shinobun earned 250 total points
ID: 17783632
The actual implementation of the mapping class can be found in the package org.hibernate.mapping [1].  For the actual XML configuration, see the reference manual [2].

Hibernate does not provide any DAO classes/model classes, that would be implemented by the user.  Again, see the reference manual on how to make your DAOs [3] and models [4].

[1] http://www.hibernate.org/hib_docs/v3/api/org/hibernate/mapping/package-summary.html
[2] http://www.hibernate.org/hib_docs/v3/reference/en/html/mapping.html
[3] http://www.hibernate.org/hib_docs/v3/reference/en/html/objectstate.html
[4] http://www.hibernate.org/hib_docs/v3/reference/en/html/persistent-classes.html
0
 
LVL 6

Assisted Solution

by:phuocnh
phuocnh earned 250 total points
ID: 17787978
To me, their difference is about idea:
+Hibernate: Try to save the java object into relational database instead of object database.
+DAO, Model: Try to make accessing to data independent on data storage mechanism.
0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to get all the API from website? 11 161
What's wrong with this code? 4 46
CSV file parsing thru Java 13 54
restrict decimal places for double datatype 10 49
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
In this post we will learn different types of Android Layout and some basics of an Android App.
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question