On Fri, 08 Jun 2012 12:47:43 -0300, Lance Java
wrote:
This conversation sounds like the "Anemic Domain Model vs. Rich Domain
Model" argument where an ADM only contains data and a RDM contains data
and
services.
Hey, I don't use ADM! I explicitly said it sucks! ;)
I have always used an
This conversation sounds like the "Anemic Domain Model vs. Rich Domain Model"
argument where an ADM only contains data and a RDM contains data and
services. I have always used an ADM and like Thiago, I sometimes add
functions that do not require a database connection. I have never really
understood
On Thu, 07 Jun 2012 16:06:31 -0300, skow wrote:
I got the notion that there was a 'Session' service from the code below.
Ah, I've just figured out you were talking about Hibernate's session, not
the Tapestry Session. :P
I think that obtaining the DAO from Tapestry-IoC is where I'm gettin
Thank you for the reply Thiago - it is much appreciated! A couple follow-up
items:
I got the notion that there was a 'Session' service from the code below.
When put in AppModule.java, it seems to work just fine when the DAO is
directly injected in a Tapestry Page:
public static IUserDao bui
On Thu, 07 Jun 2012 13:58:26 -0300, skow wrote:
The problem is that @InjectService("Session") in UserDao doesn't seem
to do anything.
That's because there's no Session service. Just inject Request and use one
of the getSession() methods. And don't forget that UserDao should be a
Tapestr