Package org.hibernate.jpamodelgen.xml.jaxb

Examples of org.hibernate.jpamodelgen.xml.jaxb.PersistenceUnitMetadata


   * within the entity, mapped-superclass, and embeddable elements are ignored.<li>
   * </ul>
   */
  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 ) );
          }
View Full Code Here


    if ( mappings.getAccess() != null ) {
      accessType = mapXmlAccessTypeToJpaAccessType( mappings.getAccess() );
      return accessType; // no need to check persistence unit default
    }

    PersistenceUnitMetadata meta = mappings.getPersistenceUnitMetadata();
    if ( meta != null ) {
      PersistenceUnitDefaults persistenceUnitDefaults = meta.getPersistenceUnitDefaults();
      if ( persistenceUnitDefaults != null ) {
        org.hibernate.jpamodelgen.xml.jaxb.AccessType xmlAccessType = persistenceUnitDefaults.getAccess();
        if ( xmlAccessType != null ) {
          accessType = mapXmlAccessTypeToJpaAccessType( xmlAccessType );
        }
View Full Code Here

   * within the entity, mapped-superclass, and embeddable elements are ignored.<li>
   * </ul>
   */
  private void determineDefaultAccessTypeAndMetaCompleteness() {
    for ( EntityMappings mappings : entityMappings ) {
      PersistenceUnitMetadata meta = mappings.getPersistenceUnitMetadata();
      if ( meta != null ) {
        if ( meta.getXmlMappingMetadataComplete() != null ) {
          context.setPersistenceUnitCompletelyXmlConfigured( true );
        }

        PersistenceUnitDefaults persistenceUnitDefaults = meta.getPersistenceUnitDefaults();
        if ( persistenceUnitDefaults != null ) {
          org.hibernate.jpamodelgen.xml.jaxb.AccessType xmlAccessType = persistenceUnitDefaults.getAccess();
          if ( xmlAccessType != null ) {
            context.setPersistenceUnitDefaultAccessType( mapXmlAccessTypeToJpaAccessType( xmlAccessType ) );
          }
View Full Code Here

   * within the entity, mapped-superclass, and embeddable elements are ignored.<li>
   * </ul>
   */
  private void determineDefaultAccessTypeAndMetaCompleteness() {
    for ( EntityMappings mappings : entityMappings ) {
      PersistenceUnitMetadata meta = mappings.getPersistenceUnitMetadata();
      if ( meta != null ) {
        if ( meta.getXmlMappingMetadataComplete() != null ) {
          context.setPersistenceUnitCompletelyXmlConfigured( true );
        }

        PersistenceUnitDefaults persistenceUnitDefaults = meta.getPersistenceUnitDefaults();
        if ( persistenceUnitDefaults != null ) {
          org.hibernate.jpamodelgen.xml.jaxb.AccessType xmlAccessType = persistenceUnitDefaults.getAccess();
          if ( xmlAccessType != null ) {
            context.setPersistenceUnitDefaultAccessType( mapXmlAccessTypeToJpaAccessType( xmlAccessType ) );
          }
View Full Code Here

   * within the entity, mapped-superclass, and embeddable elements are ignored.<li>
   * </ul>
   */
  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 ) );
          }
View Full Code Here

   * within the entity, mapped-superclass, and embeddable elements are ignored.<li>
   * </ul>
   */
  private void determineDefaultAccessTypeAndMetaCompleteness() {
    for ( EntityMappings mappings : entityMappings ) {
      PersistenceUnitMetadata meta = mappings.getPersistenceUnitMetadata();
      if ( meta != null ) {
        if ( meta.getXmlMappingMetadataComplete() != null ) {
          context.setPersistenceUnitCompletelyXmlConfigured( true );
        }

        PersistenceUnitDefaults persistenceUnitDefaults = meta.getPersistenceUnitDefaults();
        if ( persistenceUnitDefaults != null ) {
          org.hibernate.jpamodelgen.xml.jaxb.AccessType xmlAccessType = persistenceUnitDefaults.getAccess();
          if ( xmlAccessType != null ) {
            context.setPersistenceUnitDefaultAccessType( mapXmlAccessTypeToJpaAccessType( xmlAccessType ) );
          }
View Full Code Here

   * within the entity, mapped-superclass, and embeddable elements are ignored.<li>
   * </ul>
   */
  private void determineDefaultAccessTypeAndMetaCompleteness() {
    for ( EntityMappings mappings : entityMappings ) {
      PersistenceUnitMetadata meta = mappings.getPersistenceUnitMetadata();
      if ( meta != null ) {
        if ( meta.getXmlMappingMetadataComplete() != null ) {
          context.setPersistenceUnitCompletelyXmlConfigured( true );
        }

        PersistenceUnitDefaults persistenceUnitDefaults = meta.getPersistenceUnitDefaults();
        if ( persistenceUnitDefaults != null ) {
          org.hibernate.jpamodelgen.xml.jaxb.AccessType xmlAccessType = persistenceUnitDefaults.getAccess();
          if ( xmlAccessType != null ) {
            context.setPersistenceUnitDefaultAccessType( mapXmlAccessTypeToJpaAccessType( xmlAccessType ) );
          }
View Full Code Here

   * within the entity, mapped-superclass, and embeddable elements are ignored.<li>
   * </ul>
   */
  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 ) );
          }
View Full Code Here

    if ( mappings.getAccess() != null ) {
      accessType = mapXmlAccessTypeToJpaAccessType( mappings.getAccess() );
      return accessType; // no need to check persistence unit default
    }

    PersistenceUnitMetadata meta = mappings.getPersistenceUnitMetadata();
    if ( meta != null ) {
      PersistenceUnitDefaults persistenceUnitDefaults = meta.getPersistenceUnitDefaults();
      if ( persistenceUnitDefaults != null ) {
        org.hibernate.jpamodelgen.xml.jaxb.AccessType xmlAccessType = persistenceUnitDefaults.getAccess();
        if ( xmlAccessType != null ) {
          accessType = mapXmlAccessTypeToJpaAccessType( xmlAccessType );
        }
View Full Code Here

TOP

Related Classes of org.hibernate.jpamodelgen.xml.jaxb.PersistenceUnitMetadata

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.