> From: Jonathan K. Weedon [mailto:[EMAIL PROTECTED]]
> I am taking the time to dwell on these conventions because we are
> working on the default code generation for JBuilder, and we need
> to decide what the default names of beans should be. So, my rule
> is:
>
> * entities: default to local interface, no "Local" suffix
> * sessions: default to remote interface, no "Remote" suffix
I have been mulling over these issues myself, and I'm not quite sure which
one is best. I agree that typically, Entities will have local interfaces
and no remotes and Sessions will have remotes and no locals.
Right now, for historical reasons, we have "non qualified name = remote
interface" (e.g. Person) and the local interface is qualified (e.g.
PersonLocal, or LocalPerson).
There are two questions to debate:
1) Should both types be qualified or just one? (i.e. Person and
PersonLocal, or PersonRemote and PersonLocal)
2) Should a similar name sometimes be a remote interface and sometimes a
local one?
The latter question is reminiscent of Hungarian notation debates, so it is
likely to generate a lot of heat. Basically, it boils down to: how much do
you want to know about the underlying type of the interface you are
manipulating?
As for 1), my guess is that history will prevail and we will probably keep
the same notation we are using right now.
The bottom line is as always: whatever notation you decide to use, stick to
it throughout your whole project. And JBuilder should probably offer all
those combinations...
--
Cedric
===========================================================================
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".