Is it possible to set a filed in hibernate to have a value generated whenever it is null?
This is not the primary key but business key. Basically I have a container with a barcode field. If no barcode is assigned, generate it automatically (eg, prefix + sequence number).
Is that possible or do I need to create a custom method for accessing the next sequence value?