An application is developed with JSF and JPA.
@Entity
@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
Bill is the Parent class and subclassed to OpdBill, PharmacyBill, etc.
Multiple users may try to persist at the same time.
It is easy to generate sequence number for the Bill class, but that is not essential in the functionality. How can we have separate auto-generated sequence numbers for sub classes? (not necessary the ID, just a serial number)