[
https://issues.apache.org/jira/browse/OFBIZ-3985?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12920455#action_12920455
]
Scott Gray commented on OFBIZ-3985:
-----------------------------------
I agree with Adrian. It also looks like it would make the code less readable
due to the verbosity which would actually be a bigger problem than having to
manually type a field name (which I don't really find to be a big deal anyway).
> Using seperate class for constants
> ----------------------------------
>
> Key: OFBIZ-3985
> URL: https://issues.apache.org/jira/browse/OFBIZ-3985
> Project: OFBiz
> Issue Type: Improvement
> Components: ALL APPLICATIONS
> Affects Versions: Release Branch 10.04
> Reporter: Pankaj Savita
> Priority: Minor
> Fix For: Release Branch 10.04
>
> Attachments: Using_Separate_Constant_Class.patch
>
>
> Hi All,
>
> Why don't we use a separate constant class for defining constants? We can use
> Parameter Constants Design Pattern in OFBiz.
> Database fields & Form Fields can be defined in a Constant class, So that
> whenever fields name changed no need
> to search the entire code. Just need to change it in Constant class. It makes
> easy maintainable code.
>
> I am attaching a sample patch done in accounting component. In this I used a
> seperate class for a accounting specific constatns
> & a common class for OFBiz specific constants.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.