-->
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.  [ 4 posts ] 
Author Message
 Post subject: newbie question:what is the best way to implement a DAO Laye
PostPosted: Tue Mar 13, 2007 4:36 am 
Newbie

Joined: Sun Mar 04, 2007 5:19 am
Posts: 8
Hi All:

I'm using hibernate 3.2 , and hibernate tools which I used to generate DAO classes , but i'm wondering if there is a best practice or a better way to create my DAO Layer.

Thanks , and I really appreciate yr help
Harraz



Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:

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:


Problems with Session and transaction handling?

Read this: http://hibernate.org/42.html


Top
 Profile  
 
 Post subject: Re: newbie question:what is the best way to implement a DAO
PostPosted: Tue Mar 13, 2007 4:49 am 
Beginner
Beginner

Joined: Tue Dec 12, 2006 7:52 am
Posts: 20
Hi
The best way is you develop the DAOs with the help of Eclipse3.2 . Hibernate plugins are copy the eclipse pluginn folder
first you select u r project and run hibernate and select hibernate code generation in that u select u select exporters and chech the DAO code(.java) and the then apply it will generate automatically


Top
 Profile  
 
 Post subject: Re: newbie question:what is the best way to implement a DAO
PostPosted: Tue Mar 13, 2007 4:51 am 
Beginner
Beginner

Joined: Tue Dec 12, 2006 7:52 am
Posts: 20
Hi
The best way is you develop the DAOs with the help of Eclipse3.2 . Hibernate plugins are copy the eclipse pluginn folder
first you select u r project and run hibernate and select hibernate code generation in that u select u select exporters and chech the DAO code(.java) and the then apply it will generate automatically


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 13, 2007 5:00 am 
Newbie

Joined: Sun Mar 04, 2007 5:19 am
Posts: 8
Thx for yr help, but I already done that , i was wondering if there are another best practices or patterns that I should follow to have my DAO Layer


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.