Hey versioning experts,
Has anyone used Apex to construct a semantic version bumper?
Im looking to implement an Apex-driven "versioning" concept to a custom app, functioning somewhat similar to versioning forms/validations in SFDC Packaging, but specific to salesforce Records, not Packages.
The idea is that records would have semantic versions like packages but stored in a custom text field, "SemVersion__c
".
The user would be allowed to increment it using semantic versioning standards so that version strings are comparable (major minor patch qualifier etc.) and always-incrementing
Thanks for the collaboration!
Version
class could be really useful here. It will give you a container for you major, minor, and patch numbers. Plus acompareTo(version)
method.