You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Tomek <to...@wp.pl> on 2021/04/12 06:46:14 UTC

Naming convention for identifiers?

Hi,

I had reviewed a demo data that loaded by loadAll command of Gradle.
Some parts of the data has id like "GZ-1000" (uper case convention) and
other has id like "admin" (lower case convention) or  "DemoSupplier".
What is the recommended naming conventions for identifiers?

Tomek


Re: Naming convention for identifiers?

Posted by Michael Brohl <mi...@ecomify.de>.
Hi Tomek,

there is no hard convention for naming the identifiers. They are 
alphanumerical and you can choose whatever you like. "Speaking" 
identifiers are mostly from load data which was created by hand.

Identifiers which are generated automatically by delegator.getNextSeqId 
using SequenceValueItem are numerical, starting at 10000 by default.

Regards,

Michael Brohl

ecomify GmbH - www.ecomify.de


Am 12.04.21 um 08:46 schrieb Tomek:
> Hi,
>
> I had reviewed a demo data that loaded by loadAll command of Gradle.
> Some parts of the data has id like "GZ-1000" (uper case convention) and
> other has id like "admin" (lower case convention) or  "DemoSupplier".
> What is the recommended naming conventions for identifiers?
>
> Tomek
>

Re: Naming convention for identifiers?

Posted by Tomek <to...@wp.pl>.
Thanks

Best regards
Tomek