I want to generate a unique code manually, using a trigger in spring boot, so every time the new recorded is inserted into that table, I want to generate this unique code based on the last value inserted
for example consider: column_name Subject_code value A001
so next time when any new values are inserted I should set this Subject code manually as A002 next time A003..... so on
how can I achieve this in spring boot...