I'm just looking at the latest petstore (1.1.2) and seeing that they use the
structure of a separate model object within each entity bean to hold the
persistent attributes.  They provide a method getDetails() which will return
this object to a client.  This seems to be the anti-pattern to facade, build
a facade and then expose the data structures behind the facade to the client
directly.  It directly couples the client to the structure of the database.
I know the big argument is that it saves a few lines of code, but it seems
like a Faustian bargain.  Does this rub anybody else the wrong way?

Cheers
Jay

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to