I am working on a spring boot application where I want to auto-generate the table Id (In MySQL) of my entity in a predefined format.
The format is like "AK"+6 digits (eg: AK000001, AK000002, AK000003...AK999999).
I am using strategy = GenerationType.AUTO
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
Please help me to auto-generate the Id of predefine format.