Openbravo Forum End of Life Notice

Dear Openbravo Forum User,

Because of continued very low usage we decided to stop the forums on 31st of August 2017

In case of questions: webmaster "at" openbravo.com

Naming modules

<<

Asier Lostale

Posts: 1136

Joined: Wed Mar 18, 2009 7:24 pm

Post Tue Apr 12, 2011 11:57 am

Naming modules

 Hi all,



I'd like to remind the importance of choosing good names for module javapackages and dbprefixes. You can review documentation for this topic here [1] [2].



This is the way to avoid possible conflicts when installing different modules.



Regards



Asier




[1] http://wiki.openbravo.com/wiki/Naming_guidelines_for_modules


[2] http://wiki.openbravo.com/wiki/ERP/2.50/Developers_Guide/Concepts/Modularity#Naming



<<

Asier Lostale

Posts: 1136

Joined: Wed Mar 18, 2009 7:24 pm

Post Thu Apr 14, 2011 8:25 am

RE:Naming modules

Summarizing it, there are 3 main rules to follow:



  • If you are completely sure you will never publish your customization module in Central Repository. You can use a DBPrefix starting with CUST. It will not be possible to register this module in Central Repostory, but you are safe that other public modules will not use this DBPrefix so will not cause collisions with yours.

  • If you are planning to publish your module (or there is any chance of doing so). It is highly recommendable you to register in Central Repository it just after creating the module's header to reserve its Java Package and DBPrefix. Note that registering a module does not imply the need of publishing it, is just a name reservation to avoid other registered modules to use it.

  • Java Package should start with you company's domain's name. Please if you are not part of Openbravo SLU staff, do not use org.openbravo nor com.openbravo for your modules.


Regards


Asier


Return to Developers

Who is online

Users browsing this forum: No registered users and 2 guests

Website Terms


Designed by ST Software for PTF.