Assuming I have an abstract class ("AbstractClass") and two subclasses ("Subclass1" and "Subclass2"), two separate database tables will be created to hold instances of Subclass1 and Subclass2. These database tables currently number normally, from 1 upwards.
Is there a way to ensure the IDs of all implementing subclasses are unique between them all, while maintaining AbstractClass's abstract-ness? That is, making sure no Subclass1 and Subclass2 instances have the same ID?