Also, when a entity is restored from @Persist('Entity'), is it restored detached, or attached to current Hib session that is assigned to the current request.
On Sun, Apr 12, 2009 at 7:38 PM, daniel joyce <daniel.a.jo...@gmail.com> wrote: > What classes are automatically decorated, and which ones need to be > set up in the AppModule with a "DecorateTransactionally" method per > the DAO example. > > The reason I ask is that with Hibernate, I can define named queries on > the managed Entities. And then my DAOish methods simply reside on that > object. > > package com.bazzle.domain; > > @Entity > @NamedQuery(name="something",value="") > Class Foo{ > > @Inject > Session session > > @CommitAfter > public someFunctionThatUsesHibSession(){ > } > > } > > Now I have a page that uses > > @Persist('entity') > Foo foo; > > Can this type of setup work? Do I need to decorate the entity class > somehow? When I specify a nameduery on a entity class, it makes little > sense to have a seperate DAO. > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org