Manuel Mata wrote:
> Hi i'm using cocoon with hibernate and flowscript/jx
> just like hibernate tutorial in wiki. Everything works
> fine but this.
> 
> I have a javascript function which takes an id
> parameter
> from the request and i need to recover the object with
> hibernate API, but this code doesn't work.
> 
> function perfil_detail(){
>       openHibernateSession();
>       var id = Request.getParameter("id");
>       var perfil =
> hs.load(Packages.mypackage.MyClass.class, new
> java.lang.Long(id));
the change is trivial:

hs.load(Packages.mypackage.MyClass, new java.lang.Long(id));

still I advise you not to put business logic into flowscript. Did that
once for medium sized project 3 years ago - now I have to support it and
regret my decision a lot.

-- 
Leszek Gawron                                    CTO at MobileBox Ltd.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to