Re: Naming Conventions
Re: Naming Conventions
- Subject: Re: Naming Conventions
- From: Marcelo Ruiz Camauer <email@hidden>
- Date: Fri, 21 May 2004 15:33:05 -0300
- Organization: Banco Rio
Lotsa,
I suggest you pick a two or three letter acronym for your project and
prefix it to all your tables (ex. "AB_eoname_like_this") and
all your EOs as well ("EonameLikeThis"). This way the tables for your
project cluster together and don't have name collisions with existing
tables, especially in a legacy DB. Your EO names aren't as clear with
the prefix, but you can mix them in with other frameworks without
having duplicate names, like "Customer", or "Codes"...
I name the pk "oid", and name all fk with "oid" as a prefix. Another
valid alternative is to use "ID" as a suffix. The first way your PKs
cluster together in EOM.
Other than that, be careful with reserved keywords like "order" and
"description", use "ordering" and "descrip" or "descripcion" instead,
since some DBs won't allow them.
Respect normal Java naming rules for the rest.
--
Saludos,
Marcelo Ruiz Camauer mailto:email@hidden
-----------------------------------
Friday, May 21, 2004, 12:07:28 PM:
LC> What do people prefer as a naming convention for database tables to EO
LC> objects? Coming from a M$ world, many developers prefix the names of
LC> their tables with "tbl" (as in "tblObjects"). Others use various
LC> prefixes for their objects based on type. I understand what the docs
LC> mention (using "Object" for the object name and "OBJECT" or "OBJECTS"
LC> for the table name).
LC> Any recommendations?
LC> Thanx,
LC> Ryan
LC> _________________________
LC> Tired of spam? Signup for a FREE SpamJammer.Com account and say
LC> goodbye to junk email forever!
LC> _______________________________________________
LC> webobjects-dev mailing list | email@hidden
LC> Help/Unsubscribe/Archives:
LC> http://www.lists.apple.com/mailman/listinfo/webobjects-dev
LC> Do not post admin requests to the list. They will be ignored.
*********************************************************************
Visite http://www.bancorio.com.ar y tenga el Banco al alcance de su
mano.
*********************************************************************
NOTA DE CONFIDENCIALIDAD / CONFIDENTIALITY NOTE
Este mensaje (y sus anexos) es confidencial y puede contener
informacion (i) de propiedad exclusiva de Banco Rio de la Plata S.A.
sus afiliadas o subsidiarias; o (ii) amparada por el secreto
profesional. Si usted ha recibido este fax o e-mail por error, por
favor, comuniquelo inmediatamente via fax o e-mail y tenga la
amabilidad de destruirlo; no debera copiar el mensaje ni divulgar su
contenido a ninguna persona.
Muchas gracias.
This message (including attachments) is confidential. It may also
contain information that (i) is exclusively property of Banco Rio de
la Plata S.A. or its affiliates or subsidiaries; or (ii) is
privileged or otherwise legally exempt from disclosure. If you have
received it by mistake please let us know by fax or e-mail
immediately and destroy or delete it from your files or system; you
should also not copy the message nor disclose its contents to anyone.
Thank you.
*********************************************************************
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.