I have the following superclass that will be extended by many classes. Its one property, foreignKey, will be the @Id for one of the inheriting classes.
The superclass