mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-18 00:55:16 +00:00
METAGEN-86 Adding missing processor option
This commit is contained in:
parent
7b8b7ead72
commit
8ace40f351
@ -63,6 +63,7 @@
|
||||
JPAMetaModelEntityProcessor.ORM_XML_OPTION,
|
||||
JPAMetaModelEntityProcessor.FULLY_ANNOTATION_CONFIGURED_OPTION,
|
||||
JPAMetaModelEntityProcessor.LAZY_XML_PARSING,
|
||||
JPAMetaModelEntityProcessor.ADD_GENERATION_DATE,
|
||||
JPAMetaModelEntityProcessor.ADD_GENERATED_ANNOTATION,
|
||||
JPAMetaModelEntityProcessor.ADD_SUPPRESS_WARNINGS_ANNOTATION
|
||||
})
|
||||
@ -108,7 +109,7 @@ public void init(ProcessingEnvironment env) {
|
||||
if ( !fullyAnnotationConfigured ) {
|
||||
JpaDescriptorParser parser = new JpaDescriptorParser( context );
|
||||
parser.parseXml();
|
||||
if ( context.isPersistenceUnitCompletelyXmlConfigured() ) {
|
||||
if ( context.isFullyXmlConfigured() ) {
|
||||
createMetaModelClasses();
|
||||
}
|
||||
}
|
||||
@ -126,7 +127,7 @@ public boolean process(final Set<? extends TypeElement> annotations, final Round
|
||||
return ALLOW_OTHER_PROCESSORS_TO_CLAIM_ANNOTATIONS;
|
||||
}
|
||||
|
||||
if ( context.isPersistenceUnitCompletelyXmlConfigured() ) {
|
||||
if ( context.isFullyXmlConfigured() ) {
|
||||
context.logMessage(
|
||||
Diagnostic.Kind.OTHER,
|
||||
"Skipping the processing of annotations since persistence unit is purely xml configured."
|
||||
|
Loading…
x
Reference in New Issue
Block a user