-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: DAO Objects
PostPosted: Wed Jan 19, 2005 8:56 am 
Newbie

Joined: Wed Jan 19, 2005 7:15 am
Posts: 2
Hibernate version: 2.1.6

Mapping documents:

Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:

Name and version of the database you are using:

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:

Hi,

Is tere anynome can explain me the DAO objects.
Where is the difference with a simple POJO object.

Tanks.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 19, 2005 9:43 am 
Hibernate Team
Hibernate Team

Joined: Thu Dec 18, 2003 9:55 am
Posts: 1977
Location: France
dao is where you _can_ isolate persistence framework calls

generally, most of DAO methods are queries (object oriented of course), you can also encapsulate save, update,... but that's not necessary
DAO return the pojo(s) you need


Pojos can be used in every layer of your apps, also in views.

_________________
Anthony,
Get value thanks to your skills: http://www.redhat.com/certification


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 19, 2005 10:30 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Use Google.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 19, 2005 2:52 pm 
Regular
Regular

Joined: Sat May 15, 2004 4:27 am
Posts: 79
hope it can help you : http://www-106.ibm.com/developerworks/java/library/j-dao/


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 19, 2005 8:40 pm 
Regular
Regular

Joined: Wed Jan 07, 2004 5:16 pm
Posts: 65
Location: CA, USA
Check out the DAO pattern in the Core J2EE Patterns book:

http://java.sun.com/blueprints/corej2ee ... bject.html

Kevin


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.