I wonder if there is a clean (or native) way to generate the sequence for the table in order to use it as a serial number.
As far as I know, no, not for a field not Id .
But you can use the selected object with the appropriate generator strategy and save a new instance when you want to get the next identifier from it.
Another option is to model the strategy of the TABLE generator and use your own SQL to read the next identifier and increase it.
source share