I want to create a situation where a group of classes (inherited from the same base class) all have a different unique ID. The ID belongs to the class, not to it's instances. The ID should not be sensitive to code changes (so runtime computation of the ID based on some properties is out of the question). Also, I need it to be not sensitive to classes adition, meaning, that once a class got an ID, it will be the same ID even if I move the class , change it's name, or the using code Also, I need it to be programmer proof, so the ID will be auto-generated (by eclipse) and if accidentally is used twice - I will get an error. If possible I want to connect the ID to an Enum that will have a unique value for each possible ID, but this a secondary goal.
Any ideas?