boolean isEmbeddable
= type.getAnnotation(javax.persistence.Embeddable.class) != null;
boolean isMappedSuperclass
= type.getAnnotation(javax.persistence.MappedSuperclass.class) != null;
MappedSuperclassConfig mappedSuperclassOrEntityConfig = null;
if (entityMappings != null) {
mappedSuperclassOrEntityConfig =
entityMappings.getEntityConfig(className);