Welcome back friends, in this story, I will be going to explain how I am using a Custom ID generator for Employee, Customer, and Vendor Data. I am not using any existing library for generating the ID. Just I am using my own logic to generate the ID for employee, Customer, and Vendor.
In my Billing System, there is a class called “CodeGenerator.java” it acts as a Component class, this class used generating unique “Code” for all of my Entity objects. I don’t have to rewrite the new method or class for different entity objects for unique code generation.