You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Hugo Burm <hu...@xs4all.nl> on 2003/04/06 15:06:42 UTC

XMLForms and Hibernate

Someone else working on this? Looks like an obvious way to go.
Hibernate helps you to make your Java Beans persistent. For Hibernate: see
top-10 at Sourceforge.
I have Hibernate 2.0b4 running under Cocoon 2.1dev. See
http://wiki.cocoondev.org/Wiki.jsp?page=UsingHibernateToMakeYourJavaBeansPer
sistent.

Hugo Burm


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


RE: XMLForms and Hibernate

Posted by Reinhard Pötz <re...@gmx.net>.
> From: Richard In Public [mailto:edification@blueyonder.co.uk] 
>
> I started down this road this weekend and am feeling good 
> about it so far. I am currently thinking through invoking 
> Hibernate from within Flowscript. I am contemplating wrapping 
> the call in an Action, which I can call using the act(type, 
> src, param) function, which is available within Flowscript - 
> got this from 
> http://www.mail-archive.com/cocoon-> dev@xml.apache.org/msg32562.html.

Why do you need an action? AFAIK the possibilty to call actions from the
flow is to reuse *existing* actions.

I would wrap the Hibernate calls within a Java object - that should do
it, shouldn't it?

Regards,
Reinhard


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Re: XMLForms and Hibernate

Posted by Richard In Public <ed...@blueyonder.co.uk>.
Hi Hugo

I started down this road this weekend and am feeling good about it so far.
I am currently thinking through invoking Hibernate from within Flowscript.
I am contemplating wrapping the call in an Action, which I can call using
the act(type, src, param) function, which is available within Flowscript -
got this from
http://www.mail-archive.com/cocoon-dev@xml.apache.org/msg32562.html.

I definitely want to use this with XMLForms so it is nice to no someone else
out there is doing the same. Will let you know if I come up with anything
promising.  In the meantime, thanks for the wiki page.

Richard Hoberman



----- Original Message -----
From: "Hugo Burm" <hu...@xs4all.nl>
To: <co...@xml.apache.org>
Sent: Sunday, April 06, 2003 2:06 PM
Subject: XMLForms and Hibernate


> Someone else working on this? Looks like an obvious way to go.
> Hibernate helps you to make your Java Beans persistent. For Hibernate: see
> top-10 at Sourceforge.
> I have Hibernate 2.0b4 running under Cocoon 2.1dev. See
>
http://wiki.cocoondev.org/Wiki.jsp?page=UsingHibernateToMakeYourJavaBeansPer
> sistent.
>
> Hugo Burm
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


RE: XMLForms and Hibernate

Posted by Hugo Burm <hu...@xs4all.nl>.
I was referring to a tutorial similar to the one for Xindice. Based on
actions using java beans.
But now, once I have read some other comments, I am a bit confused. The flow
script (new for me) looks interesting.
So the way to go looks like:
- don't clutter the Java beans that represent the persistent data with
Hibernate logic.
- don't clutter the actions with Hibernate logic.
- wrap the logic as much as possible in a helper class. Similar to
XindiceManager.java.

Hugo Burm


-----Original Message-----
From: ivelin [mailto:ivelin@apache.org]
Sent: Sunday, April 06, 2003 5:09 PM
To: cocoon-users@xml.apache.org
Subject: Re: XMLForms and Hibernate


Can you be more specific?
Are you referring to a tutorial similar to the one for Xindice or something
further fetching?
http://xml.apache.org/cocoon/howto/howto-xindice-xmlform.html



-=Ivelin=-
----- Original Message -----
From: "Hugo Burm" <hu...@xs4all.nl>
To: <co...@xml.apache.org>
Sent: Sunday, April 06, 2003 8:06 AM
Subject: XMLForms and Hibernate


> Someone else working on this? Looks like an obvious way to go.
> Hibernate helps you to make your Java Beans persistent. For Hibernate: see
> top-10 at Sourceforge.
> I have Hibernate 2.0b4 running under Cocoon 2.1dev. See
>
http://wiki.cocoondev.org/Wiki.jsp?page=UsingHibernateToMakeYourJavaBeansPer
> sistent.
>
> Hugo Burm
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Re: XMLForms and Hibernate

Posted by ivelin <iv...@apache.org>.
Can you be more specific?
Are you referring to a tutorial similar to the one for Xindice or something
further fetching?
http://xml.apache.org/cocoon/howto/howto-xindice-xmlform.html



-=Ivelin=-
----- Original Message -----
From: "Hugo Burm" <hu...@xs4all.nl>
To: <co...@xml.apache.org>
Sent: Sunday, April 06, 2003 8:06 AM
Subject: XMLForms and Hibernate


> Someone else working on this? Looks like an obvious way to go.
> Hibernate helps you to make your Java Beans persistent. For Hibernate: see
> top-10 at Sourceforge.
> I have Hibernate 2.0b4 running under Cocoon 2.1dev. See
>
http://wiki.cocoondev.org/Wiki.jsp?page=UsingHibernateToMakeYourJavaBeansPer
> sistent.
>
> Hugo Burm
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org