METAGEN-82 Fixed a few inconsistencies in the way @MappedSuperClass
are considered
This commit is contained in:
parent
0ff88cff1f
commit
0c18c38a55
|
@ -259,11 +259,11 @@ public class JPAMetaModelEntityProcessor extends AbstractProcessor {
|
|||
|
||||
private MetaEntity tryGettingExistingEntityFromContext(AnnotationMirror mirror, String fqn) {
|
||||
MetaEntity alreadyExistingMetaEntity = null;
|
||||
if ( TypeUtils.isAnnotationMirrorOfType( mirror, Constants.ENTITY ) ) {
|
||||
if ( TypeUtils.isAnnotationMirrorOfType( mirror, Constants.ENTITY )
|
||||
|| TypeUtils.isAnnotationMirrorOfType( mirror, Constants.MAPPED_SUPERCLASS )) {
|
||||
alreadyExistingMetaEntity = context.getMetaEntity( fqn );
|
||||
}
|
||||
else if ( TypeUtils.isAnnotationMirrorOfType( mirror, Constants.MAPPED_SUPERCLASS )
|
||||
|| TypeUtils.isAnnotationMirrorOfType( mirror, Constants.EMBEDDABLE ) ) {
|
||||
else if ( TypeUtils.isAnnotationMirrorOfType( mirror, Constants.EMBEDDABLE ) ) {
|
||||
alreadyExistingMetaEntity = context.getMetaEmbeddable( fqn );
|
||||
}
|
||||
return alreadyExistingMetaEntity;
|
||||
|
|
|
@ -219,7 +219,7 @@ public class XmlParser {
|
|||
if ( context.containsMetaEntity( fqcn ) ) {
|
||||
context.logMessage(
|
||||
Diagnostic.Kind.WARNING,
|
||||
fqcn + " was already processed once. Skipping second occurance."
|
||||
fqcn + " was already processed once. Skipping second occurrence."
|
||||
);
|
||||
}
|
||||
context.addMetaEntity( fqcn, metaEntity );
|
||||
|
@ -244,7 +244,7 @@ public class XmlParser {
|
|||
if ( context.containsMetaEmbeddable( fqcn ) ) {
|
||||
context.logMessage(
|
||||
Diagnostic.Kind.WARNING,
|
||||
fqcn + " was already processed once. Skipping second occurance."
|
||||
fqcn + " was already processed once. Skipping second occurrence."
|
||||
);
|
||||
}
|
||||
context.addMetaEmbeddable( fqcn, metaEntity );
|
||||
|
@ -271,10 +271,10 @@ public class XmlParser {
|
|||
mappedSuperClass, pkg, getXmlMappedType( fqcn ), context
|
||||
);
|
||||
|
||||
if ( context.containsMetaEmbeddable( fqcn ) ) {
|
||||
if ( context.containsMetaEntity( fqcn ) ) {
|
||||
context.logMessage(
|
||||
Diagnostic.Kind.WARNING,
|
||||
fqcn + " was already processed once. Skipping second occurance."
|
||||
fqcn + " was already processed once. Skipping second occurrence."
|
||||
);
|
||||
}
|
||||
context.addMetaEntity( fqcn, metaEntity );
|
||||
|
|
Loading…
Reference in New Issue