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

Reply via email to