Agree with most Adrian's comments. This application was developed as a proof of concept to examine the benefit of Spring / Cayenne integration in the context of a Click application. The outcome was that Spring provided no significant benefit for Cayenne as Cayenne already had very good support for web applications, and did not need the Spring Hibernate style helper classes you generally see in a Spring Hibernate web application.
Note however there are other reasons to use Spring, such as Spring Security or if you are using Hibernate as the ORM. We should remove the reference to this application in the Click documentation. regards Malcolm Edgar On Tue, Feb 23, 2010 at 1:50 AM, Adrian A. <[email protected]> wrote: >> I'm trying to use the Click and Cayenne WebApplication to understand >> more how the Cayenne can be used with Click. I think is better to >> understand this example before try to understand the >> Click/Cayenne/Spring Example >> But I can't do it work with the click-2.1.0 and cayenne 3.06M version. >> Can anybody help me ?? >> Here what I did >> >> I did the checkout from >> http://svn.apache.org/repos/asf/click/trunk/examples/click-cayenne/ > > Unfortunately that webapplication is rather old, and the Click-Cayenne > integration changed since that time. > Also note that /examples/click-spring-cayenne/ is old too. > > For a more actual way to use Click together with Cayenne, I would suggest to > use the click-examples (the cayenne part of it). > You can see them live here: http://www.avoka.com/click-examples/ > (the Integrations menu item) > And the sources are distributed together with Click or here: > http://svn.apache.org/repos/asf/click/trunk/click/examples/ > the Cayenne related pages are here: > http://svn.apache.org/repos/asf/click/trunk/click/examples/src/org/apache/click/examples/page/cayenne/ > > Unfortunately these examples make use of Spring too, but you can ignore > Spring (as it is not really needed in most applications). > > Adrian. > P.S. If you still have difficulties using click-examples as a starting > point, or/and can wait a little, I'll try over this week-end to make a new > version of that old examples/click-cayenne webapplication. > >
