Re: [appfuse-user] Hibernate session in Struct + Spring + Hibernate project

2008-08-12 Thread Vincenzo Caselli
I'm not sure since I adopted iBATIS, but have you tried with the following: getHibernateTemplate().getSessionFactory().getCurrentSession() ? (should do, at least in DAOs) Vincenzo On Tue, Aug 12, 2008 at 3:58 PM, krishgy <[EMAIL PROTECTED]> wrote: > > I want to execute native sql statement in

Re: [appfuse-user] Hibernate session in Struct + Spring + Hibernate project

2008-08-12 Thread Matt Raible
Have you tried googling for "Hibernate native SQL"? ;-) http://www.google.com/search?q=hibernate+native+sql Matt On Tue, Aug 12, 2008 at 6:58 AM, krishgy <[EMAIL PROTECTED]> wrote: > > I want to execute native sql statement in Hibernate. How to do this? How to > get the hibernate session into D

Re: [appfuse-user] Unit Test Help struts-spring-hibernate

2008-08-12 Thread Matt Raible
You should look in E:\Projects\EMS\target\surefire-reports to see what the error is. Matt On Tue, Aug 12, 2008 at 8:26 AM, krishgy <[EMAIL PROTECTED]> wrote: > > Can you tell me whats wrong with my unit test case here > > package ems.webapp.action; > > import com.opensymphony.xwork2.ActionSuppor

Re: [appfuse-user] How to disable table creation every time

2008-08-12 Thread Kropp, Henning
Hi, I would not delete it but configure it properly. org.codehaus.mojo hibernate3-maven-plugin 2.1 hbm2ddl

Re: [appfuse-user] How to disable table creation every time

2008-08-12 Thread Mauri Ferreyra
Change plugin org.codehaus.mojo, delete: process-test-resources hbm2ddl regards! On Tue, Aug 12, 2008 at 12:34 PM, krishgy <[EMAIL PROTECTED]> wrote:

Re: [appfuse-user] How to disable table creation every time

2008-08-12 Thread krishgy
I tried that. But no luck. I use postgres db Cens wrote: > > Change in pom.xml, from value CLEAN_INSERT to > NONE > > Vincenzo Caselli > > > On Tue, Aug 12, 2008 at 5:07 PM, krishgy <[EMAIL PROTECTED]> wrote: > >> >> Hi All, >> >> I have AppFuse (Basic Struts, Hibernate and Spring) proj

[appfuse-user] Unit Test Help struts-spring-hibernate

2008-08-12 Thread krishgy
Can you tell me whats wrong with my unit test case here package ems.webapp.action; import com.opensymphony.xwork2.ActionSupport; import org.apache.struts2.ServletActionContext; import org.appfuse.service.GenericManager; import ems.model.Client; import org.appfuse.webapp.action.BaseActionTestCase

Re: [appfuse-user] How to disable table creation every time

2008-08-12 Thread Vincenzo Caselli
Change in pom.xml, from value CLEAN_INSERT to NONE Vincenzo Caselli On Tue, Aug 12, 2008 at 5:07 PM, krishgy <[EMAIL PROTECTED]> wrote: > > Hi All, > > I have AppFuse (Basic Struts, Hibernate and Spring) projects. Every time I > package, run the test or run the mvn jetty:run-war, I am getting

[appfuse-user] How to disable table creation every time

2008-08-12 Thread krishgy
Hi All, I have AppFuse (Basic Struts, Hibernate and Spring) projects. Every time I package, run the test or run the mvn jetty:run-war, I am getting the data base tables are deleted and again they are created and test data are inserted. I do not want to do this until or unless there are schema cha

[appfuse-user] Hibernate session in Struct + Spring + Hibernate project

2008-08-12 Thread krishgy
I want to execute native sql statement in Hibernate. How to do this? How to get the hibernate session into Dao and Action classes? -- View this message in context: http://www.nabble.com/Hibernate-session-in-Struct-%2B-Spring-%2B-Hibernate-project-tp18944816s2369p18944816.html Sent from the AppFu

Re: [appfuse-user] Manager using multiple dao

2008-08-12 Thread Jonathan Dray
Ok Leo, I will rename my entity to avoid this kind of comprehension mistakes. But, it does not help me to understand what's wrong in my configuration and what I should add for now... Thank you Jonathan 2008/8/12 Leo Barrientos C. <[EMAIL PROTECTED]> > Aaa, action is you entity! - Action should

Re: [appfuse-user] Manager using multiple dao

2008-08-12 Thread Leo Barrientos C.
Aaa, action is you entity! - Action should be reserve word to avoid confusions like mine. Jonathan Dray wrote: Leo, Nothing to do with MVC. To summarize, here is a short explanation of my model : I have a "Process" object which is composed of 1 or many "Action" (oneToMany relashionship) "

Re: [appfuse-user] Manager using multiple dao

2008-08-12 Thread Jonathan Dray
Matt, Please find attached the Manager test class with the application context configuration file. Jonathan 2008/8/12 Matt Raible <[EMAIL PROTECTED]> > > > On Mon, Aug 11, 2008 at 11:02 AM, Jonathan Dray <[EMAIL PROTECTED]>wrote: > >> Matt, >> >> I have successfully tested my actionDao with an

Re: [appfuse-user] OneToMany Relation Problem

2008-08-12 Thread Martin Homik
Try this post: http://www.jroller.com/eyallupu/entry/hibernate_exception_simultaneously_fetch_multiple I ran into a similar problem a few days ago. I made the mistake to use entity inheritance + eager fetching on a list. It seems that this is not accurate. Because the @ColumnIndex approach did no

Re: [appfuse-user] Blank Page when there are JSP errors

2008-08-12 Thread Allan DV. DaƱos
Hi, Thanks! I can now see the exception logs in the page. ^___^ but would you mind if I ask why is it the "struts.action.extension" the cause of blank pages? And here is the stack trace printed on the page. As I told you earlier, this only occurs when I deployed the app using "mvn jetty:run-w

[appfuse-user] Eclipse Ganymede doesn't automatically recompile

2008-08-12 Thread bill.damage
I have non-AppFuse Eclipse projects which detect & rebuild the source on each change. I find this really quick when running single unit tests from the Junit panel as I don't even need to save the source first. The process of edit | run | test again | edit is really productive. With my first Appfus