Re: [appfuse-user] Hibernate Named SQL query

2009-05-04 Thread Matt Raible
Have you read the DAO tutorial? You should be able to create another DAO and have access to HibernateTemplate. http://appfuse.org/display/APF/Using+Hibernate Matt On Mon, May 4, 2009 at 8:06 PM, Kenny Ha wrote: > > Can you give me an example?? > Thanks much! > > > mraible wrote: > > > > You sh

Re: [appfuse-user] Hibernate Named SQL query

2009-05-04 Thread Kenny Ha
Can you give me an example?? Thanks much! mraible wrote: > > You should not use your own HibernateUtil class. You should use the > "sessionFactory" bean that's already configured and use it (or a > HibernateTemplate) to get your session. > > Matt > > On Sun, May 3, 2009 at 7:58 PM, Kenny Ha

Re: [appfuse-user] Hibernate Named SQL query

2009-05-04 Thread Matt Raible
You should not use your own HibernateUtil class. You should use the "sessionFactory" bean that's already configured and use it (or a HibernateTemplate) to get your session. Matt On Sun, May 3, 2009 at 7:58 PM, Kenny Ha wrote: > > Hi all, > > I posted this problem on AppFuse-Dev, but I haven't f