@Service
public class ApplicationNumberGenerator
extends Object
Generic application number generator class, this implementation will return ERP wide
application number, which consist of 5 digit sequence number (padded with trialing
zero if sequence length is less than 5 digit) followed by current year and 2 random alphabets.
Sequence number, year and alphabets are separated by hyphen.
eg: 00010-2016-QX
Sequence number will be reset to 1 on every year