Re : ModelDriven & Hibernate Entities

2011-03-09 Thread François Rouxel
same issue this how I fixed it : (the main idea is to redirect to a jsp if an exception occured, and the jsp rollback) create an error page error.jsp <%@page import="com.rdvcentral.util.persistance.HibernateUtil"%> <%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ taglib pre

RE: ModelDriven & Hibernate Entities

2011-03-10 Thread adam pinder
i dont use the osiv filter i just make sure the DAO object method returns the objects initialised correctly (i.e. all lazy collections that are to be accessed are initialised) for how its going to be used - i might have a DAO method to return the plain object with no collections initialised an

RE: Re : ModelDriven & Hibernate Entities

2011-03-09 Thread CRANFORD, CHRIS
> -Original Message- > From: François Rouxel [mailto:rouxe...@yahoo.com] > Sent: Wednesday, March 09, 2011 11:43 AM > To: Struts Users Mailing List > Subject: Re : ModelDriven & Hibernate Entities > > same issue > this how I fixed it : (the main idea is to redir

Re: Re : ModelDriven & Hibernate Entities

2011-03-09 Thread Dave Newton
On Wed, Mar 9, 2011 at 1:09 PM, CRANFORD, CHRIS wrote: > I wouldn't place anything Hibernate or persistence related in > my JSP pages at all.  In my mind, this breaks the entire > reasoning behind MVC and the view simply there to render data IMO OSiV filters put non-render stuff into the JSP anywa

Re : Re : ModelDriven & Hibernate Entities

2011-03-09 Thread François Rouxel
. fr/ - Message d'origine De : "CRANFORD, CHRIS" À : Struts Users Mailing List Envoyé le : Mer 9 mars 2011, 13h 09min 33s Objet : RE: Re : ModelDriven & Hibernate Entities Francois - While that may work for you, I wouldn't place anyt

RE: Re : Re : ModelDriven & Hibernate Entities

2011-03-09 Thread CRANFORD, CHRIS
From: François Rouxel [mailto:rouxe...@yahoo.com] > Sent: Wednesday, March 09, 2011 12:24 PM > To: Struts Users Mailing List > Subject: Re : Re : ModelDriven & Hibernate Entities > > Hi Chris, > first, > you might have another pb, because struts2 does not change your model > if

Re: Re : Re : ModelDriven & Hibernate Entities

2011-03-09 Thread Chris Pratt
;s reasons behind > why it works the way it does. > > > > > -Original Message- > > From: François Rouxel [mailto:rouxe...@yahoo.com] > > Sent: Wednesday, March 09, 2011 12:24 PM > > To: Struts Users Mailing List > > Subject: Re : Re : ModelDriven

RE: Re : Re : ModelDriven & Hibernate Entities

2011-03-09 Thread CRANFORD, CHRIS
> Sent: Wednesday, March 09, 2011 1:35 PM > To: Struts Users Mailing List > Subject: Re: Re : Re : ModelDriven & Hibernate Entities > > It might just be an order of interceptors problem. One of your first > interceptors should be your login check. That should definitely

Re: Re : Re : ModelDriven & Hibernate Entities

2011-03-09 Thread Dave Newton
> method. >> >> If I return the user to the INPUT method because maybe I'm not using >> the Struts >> validation framework and doing it myself in my execute() method or I >> have some >> complex conditions I must check for before I save the data.  In this

RE: Re : Re : ModelDriven & Hibernate Entities

2011-03-09 Thread CRANFORD, CHRIS
I still think this is related to my @Transactional annotation maybe. > -Original Message- > From: Dave Newton [mailto:davelnew...@gmail.com] > Sent: Wednesday, March 09, 2011 2:16 PM > To: Struts Users Mailing List > Subject: Re: Re : Re : ModelDriven & Hibernate En

RE: Re : Re : ModelDriven & Hibernate Entities

2011-03-09 Thread Martin Gainty
t; From: Maurizio Cucchiara [mailto:maurizio.cucchi...@gmail.com] > > Sent: Wednesday, March 09, 2011 4:20 PM > > To: Struts Users Mailing List > > Subject: Re: RE: Re : Re : ModelDriven & Hibernate Entities > > > > Have you tried to put the transational annotat

RE: Re : Re : ModelDriven & Hibernate Entities

2011-03-10 Thread CRANFORD, CHRIS
e- > From: Martin Gainty [mailto:mgai...@hotmail.com] > Sent: Wednesday, March 09, 2011 9:59 PM > To: Struts Users Mailing List > Subject: RE: Re : Re : ModelDriven & Hibernate Entities > > > osiv filter (should) set flushing to never (now manual) to prevent > accidental wr

RE: Re : Re : ModelDriven & Hibernate Entities

2011-03-11 Thread Martin Gainty
à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Thu, 10 Mar 2011 19:39:56 -0600 >

Re: RE: Re : Re : ModelDriven & Hibernate Entities

2011-03-09 Thread Maurizio Cucchiara
Dave Newton [mailto:davelnew...@gmail.com] >> Sent: Wednesday, March 09, 2011 2:16 PM >> To: Struts Users Mailing List >> Subject: Re: Re : Re : ModelDriven & Hibernate Entities >> >> Another reason OSiV filters can be tricky. >> >> Dave >

RE: RE: Re : Re : ModelDriven & Hibernate Entities

2011-03-09 Thread CRANFORD, CHRIS
In the Struts2 Action rather than my service class? > -Original Message- > From: Maurizio Cucchiara [mailto:maurizio.cucchi...@gmail.com] > Sent: Wednesday, March 09, 2011 4:20 PM > To: Struts Users Mailing List > Subject: Re: RE: Re : Re : ModelDriven & Hibernate Ent

Re: RE: Re : Re : ModelDriven & Hibernate Entities

2011-03-09 Thread Maurizio Cucchiara
critto: >> > I still think this is related to my @Transactional annotation maybe. >> > >> >> -Original Message- >> >> From: Dave Newton [mailto:davelnew...@gmail.com] >> >> Sent: Wednesday, March 09, 2011 2:16 PM >> >> To: Strut

RE: RE: Re : Re : ModelDriven & Hibernate Entities

2011-03-10 Thread CRANFORD, CHRIS
nt: Thursday, March 10, 2011 1:41 AM > To: Struts Users Mailing List > Cc: CRANFORD, CHRIS > Subject: Re: RE: Re : Re : ModelDriven & Hibernate Entities > > It's exactly what I meant (you can leave in your service class too). > The object factory must be spring and your cla

Re: RE: Re : Re : ModelDriven & Hibernate Entities

2011-03-10 Thread Dave Newton
On Thu, Mar 10, 2011 at 11:32 AM, CRANFORD, CHRIS wrote: > I don't use Spring to instantiate my actions, they're not defined like that. And you're not using the S2 Spring plugin? (Just for the sake of completeness; I'm only marginally following this thread.) Dave

RE: RE: Re : Re : ModelDriven & Hibernate Entities

2011-03-10 Thread CRANFORD, CHRIS
Dave - Yes the plugin is in the app's lib directory. > -Original Message- > From: Dave Newton [mailto:davelnew...@gmail.com] > Sent: Thursday, March 10, 2011 10:37 AM > To: Struts Users Mailing List > Cc: CRANFORD, CHRIS; Maurizio Cucchiara > Subject: Re: RE

Re: RE: Re : Re : ModelDriven & Hibernate Entities

2011-03-10 Thread Dave Newton
On Thu, Mar 10, 2011 at 11:38 AM, CRANFORD, CHRIS wrote: > Yes the plugin is in the app's lib directory. Just FYI, that sets the object factory to "spring", so Spring is instantiating your actions. (At least it used to.) Dave -

RE: RE: Re : Re : ModelDriven & Hibernate Entities

2011-03-10 Thread CRANFORD, CHRIS
Oh, learn something new every day :) > -Original Message- > From: Dave Newton [mailto:davelnew...@gmail.com] > Sent: Thursday, March 10, 2011 10:40 AM > To: CRANFORD, CHRIS > Cc: Struts Users Mailing List; Maurizio Cucchiara > Subject: Re: RE: Re : Re : ModelDriven &a

RE: RE: Re : Re : ModelDriven & Hibernate Entities

2011-03-10 Thread CRANFORD, CHRIS
t; >> Sent: Wednesday, March 09, 2011 4:20 PM > >> To: Struts Users Mailing List > >> Subject: Re: RE: Re : Re : ModelDriven & Hibernate Entities > >> > >> Have you tried to put the transational annotation in the class > >> declaration?

RE: RE: Re : Re : ModelDriven & Hibernate Entities

2011-03-10 Thread CRANFORD, CHRIS
entity accordingly when applicable. > -Original Message- > From: Dave Newton [mailto:davelnew...@gmail.com] > Sent: Thursday, March 10, 2011 10:40 AM > To: CRANFORD, CHRIS > Cc: Struts Users Mailing List; Maurizio Cucchiara > Subject: Re: RE: Re : Re : ModelDriven &a

Re: RE: Re : Re : ModelDriven & Hibernate Entities

2011-03-10 Thread Burton Rhodes
CHRIS >> Cc: Struts Users Mailing List; Maurizio Cucchiara >> Subject: Re: RE: Re : Re : ModelDriven & Hibernate Entities >> >> On Thu, Mar 10, 2011 at 11:38 AM, CRANFORD, CHRIS wrote: >> > Yes the plugin is in the app's lib directory. >> >>

Re: RE: Re : Re : ModelDriven & Hibernate Entities

2011-03-10 Thread Burton Rhodes
e which I could easily avoid by not >> allowing the framework to modify my persistent entity and force me to >> manage the copy/update of the entity accordingly when applicable. >> >>> -Original Message- >>> From: Dave Newton [mailto:davelnew...@gmail.com] &

RE: RE: Re : Re : ModelDriven & Hibernate Entities

2011-03-11 Thread CRANFORD, CHRIS
execute() method to my business logic with my model, then I should be ok? > -Original Message- > From: Burton Rhodes [mailto:burtonrho...@gmail.com] > Sent: Thursday, March 10, 2011 7:49 PM > To: Struts Users Mailing List > Subject: Re: RE: Re : Re : ModelDriven & Hibern

Re: RE: Re : Re : ModelDriven & Hibernate Entities

2011-03-11 Thread Burton Rhodes
o my business logic with my model, then I > should be ok? > >> -Original Message- >> From: Burton Rhodes [mailto:burtonrho...@gmail.com] >> Sent: Thursday, March 10, 2011 7:49 PM >> To: Struts Users Mailing List >> Subject: Re: RE: Re : Re : ModelDriven & Hi