private void checkEmbeddable(Class superType, String fieldname)
{
// check validity.
if (superType != null && !superType.isAnnotationPresent(Embeddable.class))
{
throw new MetamodelLoaderException("Field: " + fieldname
+ " is annotated with @EmbeddedId but corresponding class:" + superType
+ " is not an @Embeddable entity");
}
}