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
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
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
Hi,
I would not delete it but configure it properly.
org.codehaus.mojo
hibernate3-maven-plugin
2.1
hbm2ddl
Change plugin org.codehaus.mojo, delete:
process-test-resources
hbm2ddl
regards!
On Tue, Aug 12, 2008 at 12:34 PM, krishgy <[EMAIL PROTECTED]> wrote:
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
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
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
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
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
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
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)
"
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
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
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
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
16 matches
Mail list logo