Re: Re: [appfuse-user] Executing Named query

2008-03-22 Thread dusty
+1 to Rob. You are absolutely right on the pattern you describe. One of the main reasons is that you want to have repeated patterns throughout your code even when your code becomes more complex. When I am first starting, I will usually create a model and an Action and use a GenericManager, bu

Re: [appfuse-user] Executing Named query

2008-03-22 Thread Rob Hills
Hi Derek, Derek Broughton wrote: Appfuse 2.0, Struts basic, Postgres I want to execute a Hibernate NamedQuery, but I can't figure out how to get the hibernate Session from within my Action. Can somebody point me to some useful documentation - every example I've found assumes you already have t

[appfuse-user] Executing Named query

2008-03-22 Thread Derek Broughton
Appfuse 2.0, Struts basic, Postgres I want to execute a Hibernate NamedQuery, but I can't figure out how to get the hibernate Session from within my Action. Can somebody point me to some useful documentation - every example I've found assumes you already have the Session. -- derek