-->
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.  [ 1 post ] 
Author Message
 Post subject: DAO generation documentation
PostPosted: Wed Jun 06, 2007 11:37 am 
Newbie

Joined: Sat May 19, 2007 12:02 pm
Posts: 19
Hello every one:
I am looking for a tutorial about generating DAOs with eclipse plugin. I have read the doc available and generated teh DAOs succefully, but there are few more things I need to do besede the generation:
    1- customize teh name of the generated method: For example: the generated code has a metod called findById. I need to call this method retrieveEntity where Entity is the class name. I can do this manually, but if I have many classes to follow this naming pattern then I need to do it the code generation.

    2- rename the DAO class. hibernate puts EntityHome. I need EntityDao.

    3- I need to use different way to obtain session. For example may be a HibernateUtil that gives a session saved in threadLocal.

    4- since I am new to hibernate I would like some documentation about the generated methods (merge, attachClean, findByExample .. etc) and what they do.

    Any Idea or link to a tutorial ??


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

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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.