Solved

Difference between a HibernateMapping class, DAO class and Model class

Posted on 2006-10-20
6
833 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
  • 2
6 Comments
 
LVL 9

Expert Comment

by:shinobun
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

743 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now