code: private void determineDefaultAccessTypeAndMetaCompleteness() {
  		for ( EntityMappings mappings : entityMappings ) {
  			PersistenceUnitMetadata meta = mappings.getPersistenceUnitMetadata();
  			if ( meta != null ) {
  				if ( meta.getXmlMappingMetadataComplete() != null ) {
  					context.mappingDocumentFullyXmlConfigured( true );
  				}
  				else {
  					context.mappingDocumentFullyXmlConfigured( false );
  				}
  
  				PersistenceUnitDefaults persistenceUnitDefaults = meta.getPersistenceUnitDefaults();
  				if ( persistenceUnitDefaults != null ) {
  					org.hibernate.jpamodelgen.xml.jaxb.AccessType xmlAccessType = persistenceUnitDefaults.getAccess();
  					if ( xmlAccessType != null ) {
  						context.setPersistenceUnitDefaultAccessType( mapXmlAccessTypeToJpaAccessType( xmlAccessType ) );
  					}
  				}
  			}
  			else {
  				context.mappingDocumentFullyXmlConfigured( false );
  			}
  		}
  	}
docs: Determines the default access type as specified in the <i>persistence-unit-defaults</i> as well as whether the
  xml configuration is complete and annotations should be ignored.
  <p/>
  Note, the spec says:
  <ul>
  <li>The persistence-unit-metadata element contains metadata for the entire persistence unit. It is
  undefined if this element occurs in multiple mapping files within the same persistence unit.</li>
  <li>If the xml-mapping-metadata-complete subelement is specified, the complete set of mapping
  metadata for the persistence unit is contained in the XML mapping files for the persistence unit, and any
  persistence annotations on the classes are ignored.</li>
  <li>When the xml-mapping-metadata-complete element is specified, any metadata-complete attributes specified
  within the entity, mapped-superclass, and embeddable elements are ignored.<li>
  </ul>