There are many ardent users of Cayenne (and the CayenneModeler) on this list:
http://www.objectstyle.org/cayenne/index.html


Jamie

Frank wrote:

ok, I was thinking of learning Hibernate, but did not want to take on too much too soon.
Is Hibernate the best way to work in Tapestry?


I coming from an ASP/.NET background where I really did not have to think of all these things to get a web app running. I keep coming back to Java.<g>

Regards,

Frank


----- Original Message ----- From: "Andrus Adamchik" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, April 12, 2005 10:59 AM
Subject: Re: AW: Looking for a database tutorial



IMO it is a bad idea to bind an open ResultSet to a page directly. You'll
get all kind of leaks and unpredictable behavior. If you want to stick
with JDBC in your app, the simplest way to bind your results is to first
process the ResultSet in a page Java class, converting it to a List of
Maps. Then set this list as a page property, binding it to @Foreach loop.


Andrus


ok, thanks

Can I simply return a jdbc resultset to a tapistry object?
Sorry I am so dense on this. I have done JSP websites,

I wish there were more Tapestry database examples like struts has. I
learn  best by simple examples. I really want to learn Tapestry over
struts. The  only other framework I have been looking at is JSF and
Studio Creator.

Frank

----- Original Message -----
From: "Andrus Adamchik" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, April 12, 2005 10:43 AM
Subject: Re: AW: Looking for a database tutorial


Frank,

Then I think you need to realize that there is nothing
database-specific in Tapestry. Tapestry pages will work with any
objects you give them. It makes no difference whether such objects
that were retrieved from the database or created by your application.

So how about you split your problem into two parts:

1. How do I get my data and convert it to objects.
2. How do I display these objects with Tapestry.

There is a number of choices for (1). The links I sent describe one of
them - Cayenne object relational mapping. But you can simply use JDBC,
hardcode a SQL query, read the result set into some Java objects that
you define on your own... Do an Google search for JDBC-specific
tutorials - there is nothing Tapestry specific in this...

For (2), just look into existing Tapestry applications (like Hangman)
and substitute the part that creates in-memory data objects with a
JDBC call above.

Andrus


Hello,

Thanks for the links.

I am new to this, and these tutorials seem too much for me.

I really just want a simple example for reading a database and
displaying  records from within Tapestry.

Regards,

Frank





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






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



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



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



Reply via email to