Package org.hibernate.metamodel.binding

Examples of org.hibernate.metamodel.binding.AbstractPluralAttributeBinding


          cascadeStyle,
          fetchMode
      );
    }
    else {
      final AbstractPluralAttributeBinding pluralAttributeBinding = (AbstractPluralAttributeBinding) property;
      final CascadeStyle cascadeStyle = pluralAttributeBinding.isAssociation()
          ? pluralAttributeBinding.getCascadeStyle()
          : CascadeStyles.NONE;
      final FetchMode fetchMode = pluralAttributeBinding.isAssociation()
          ? pluralAttributeBinding.getFetchMode()
          : FetchMode.DEFAULT;

      return new StandardProperty(
          pluralAttributeBinding.getAttribute().getName(),
          type,
          lazyAvailable && pluralAttributeBinding.isLazy(),
          // TODO: fix this when HHH-6356 is fixed; for now assume AbstractPluralAttributeBinding is updatable and insertable
          true, // pluralAttributeBinding.isInsertable(),
          true, //pluralAttributeBinding.isUpdatable(),
          null,
          false, // nullable - not sure what that means for a collection
          // TODO: fix this when HHH-6356 is fixed; for now assume AbstractPluralAttributeBinding is updatable and insertable
          //alwaysDirtyCheck || pluralAttributeBinding.isUpdatable(),
          true,
          pluralAttributeBinding.isIncludedInOptimisticLocking(),
          cascadeStyle,
          fetchMode
        );
    }
  }
View Full Code Here


  }

  private void bindPersistentCollection(PluralAttributeSource attributeSource, AttributeBindingContainer attributeBindingContainer) {
    final PluralAttribute existingAttribute = attributeBindingContainer.getAttributeContainer()
        .locatePluralAttribute( attributeSource.getName() );
    final AbstractPluralAttributeBinding pluralAttributeBinding;

    if ( attributeSource.getPluralAttributeNature() == PluralAttributeNature.BAG ) {
      final PluralAttribute attribute = existingAttribute != null
          ? existingAttribute
          : attributeBindingContainer.getAttributeContainer().createBag( attributeSource.getName() );
View Full Code Here

          cascadeStyle,
          fetchMode
      );
    }
    else {
      final AbstractPluralAttributeBinding pluralAttributeBinding = (AbstractPluralAttributeBinding) property;
      final CascadeStyle cascadeStyle = pluralAttributeBinding.isAssociation()
          ? pluralAttributeBinding.getCascadeStyle()
          : CascadeStyle.NONE;
      final FetchMode fetchMode = pluralAttributeBinding.isAssociation()
          ? pluralAttributeBinding.getFetchMode()
          : FetchMode.DEFAULT;

      return new StandardProperty(
          pluralAttributeBinding.getAttribute().getName(),
          null,
          type,
          lazyAvailable && pluralAttributeBinding.isLazy(),
          // TODO: fix this when HHH-6356 is fixed; for now assume AbstractPluralAttributeBinding is updatable and insertable
          true, // pluralAttributeBinding.isInsertable(),
          true, //pluralAttributeBinding.isUpdatable(),
          false,
          false,
          false, // nullable - not sure what that means for a collection
          // TODO: fix this when HHH-6356 is fixed; for now assume AbstractPluralAttributeBinding is updatable and insertable
          //alwaysDirtyCheck || pluralAttributeBinding.isUpdatable(),
          true,
          pluralAttributeBinding.isIncludedInOptimisticLocking(),
          cascadeStyle,
          fetchMode
        );
    }
  }
View Full Code Here

          cascadeStyle,
          fetchMode
      );
    }
    else {
      final AbstractPluralAttributeBinding pluralAttributeBinding = (AbstractPluralAttributeBinding) property;
      final CascadeStyle cascadeStyle = pluralAttributeBinding.isAssociation()
          ? pluralAttributeBinding.getCascadeStyle()
          : CascadeStyles.NONE;
      final FetchMode fetchMode = pluralAttributeBinding.isAssociation()
          ? pluralAttributeBinding.getFetchMode()
          : FetchMode.DEFAULT;

      return new StandardProperty(
          pluralAttributeBinding.getAttribute().getName(),
          type,
          lazyAvailable && pluralAttributeBinding.isLazy(),
          // TODO: fix this when HHH-6356 is fixed; for now assume AbstractPluralAttributeBinding is updatable and insertable
          true, // pluralAttributeBinding.isInsertable(),
          true, //pluralAttributeBinding.isUpdatable(),
          null,
          false, // nullable - not sure what that means for a collection
          // TODO: fix this when HHH-6356 is fixed; for now assume AbstractPluralAttributeBinding is updatable and insertable
          //alwaysDirtyCheck || pluralAttributeBinding.isUpdatable(),
          true,
          pluralAttributeBinding.isIncludedInOptimisticLocking(),
          cascadeStyle,
          fetchMode
        );
    }
  }
View Full Code Here

      }
    }
  }

  private void bindPersistentCollection(PluralAttributeSource attributeSource, EntityBinding entityBinding) {
    final AbstractPluralAttributeBinding pluralAttributeBinding;
    if ( attributeSource.getPluralAttributeNature() == PluralAttributeNature.BAG ) {
      final PluralAttribute pluralAttribute = entityBinding.getEntity().locateOrCreateBag( attributeSource.getName() );
      pluralAttributeBinding = entityBinding.makeBagAttributeBinding( pluralAttribute, convert( attributeSource.getPluralAttributeElementNature() ) );
    }
    else {
View Full Code Here

          cascadeStyle,
          fetchMode
      );
    }
    else {
      final AbstractPluralAttributeBinding pluralAttributeBinding = (AbstractPluralAttributeBinding) property;
      final CascadeStyle cascadeStyle = pluralAttributeBinding.isAssociation()
          ? pluralAttributeBinding.getCascadeStyle()
          : CascadeStyle.NONE;
      final FetchMode fetchMode = pluralAttributeBinding.isAssociation()
          ? pluralAttributeBinding.getFetchMode()
          : FetchMode.DEFAULT;

      return new StandardProperty(
          pluralAttributeBinding.getAttribute().getName(),
          null,
          type,
          lazyAvailable && pluralAttributeBinding.isLazy(),
          // TODO: fix this when HHH-6356 is fixed; for now assume AbstractPluralAttributeBinding is updatable and insertable
          true, // pluralAttributeBinding.isInsertable(),
          true, //pluralAttributeBinding.isUpdatable(),
          false,
          false,
          false, // nullable - not sure what that means for a collection
          // TODO: fix this when HHH-6356 is fixed; for now assume AbstractPluralAttributeBinding is updatable and insertable
          //alwaysDirtyCheck || pluralAttributeBinding.isUpdatable(),
          true,
          pluralAttributeBinding.isIncludedInOptimisticLocking(),
          cascadeStyle,
          fetchMode
        );
    }
  }
View Full Code Here

          cascadeStyle,
          fetchMode
      );
    }
    else {
      final AbstractPluralAttributeBinding pluralAttributeBinding = (AbstractPluralAttributeBinding) property;
      final CascadeStyle cascadeStyle = pluralAttributeBinding.isAssociation()
          ? pluralAttributeBinding.getCascadeStyle()
          : CascadeStyles.NONE;
      final FetchMode fetchMode = pluralAttributeBinding.isAssociation()
          ? pluralAttributeBinding.getFetchMode()
          : FetchMode.DEFAULT;

      return new StandardProperty(
          pluralAttributeBinding.getAttribute().getName(),
          null,
          type,
          lazyAvailable && pluralAttributeBinding.isLazy(),
          // TODO: fix this when HHH-6356 is fixed; for now assume AbstractPluralAttributeBinding is updatable and insertable
          true, // pluralAttributeBinding.isInsertable(),
          true, //pluralAttributeBinding.isUpdatable(),
          false,
          false,
          false, // nullable - not sure what that means for a collection
          // TODO: fix this when HHH-6356 is fixed; for now assume AbstractPluralAttributeBinding is updatable and insertable
          //alwaysDirtyCheck || pluralAttributeBinding.isUpdatable(),
          true,
          pluralAttributeBinding.isIncludedInOptimisticLocking(),
          cascadeStyle,
          fetchMode
        );
    }
  }
View Full Code Here

  }

  private void bindPersistentCollection(PluralAttributeSource attributeSource, AttributeBindingContainer attributeBindingContainer) {
    final PluralAttribute existingAttribute = attributeBindingContainer.getAttributeContainer()
        .locatePluralAttribute( attributeSource.getName() );
    final AbstractPluralAttributeBinding pluralAttributeBinding;

    if ( attributeSource.getPluralAttributeNature() == PluralAttributeNature.BAG ) {
      final PluralAttribute attribute = existingAttribute != null
          ? existingAttribute
          : attributeBindingContainer.getAttributeContainer().createBag( attributeSource.getName() );
View Full Code Here

          cascadeStyle,
          fetchMode
      );
    }
    else {
      final AbstractPluralAttributeBinding pluralAttributeBinding = (AbstractPluralAttributeBinding) property;
      final CascadeStyle cascadeStyle = pluralAttributeBinding.isAssociation()
          ? pluralAttributeBinding.getCascadeStyle()
          : CascadeStyles.NONE;
      final FetchMode fetchMode = pluralAttributeBinding.isAssociation()
          ? pluralAttributeBinding.getFetchMode()
          : FetchMode.DEFAULT;

      return new StandardProperty(
          pluralAttributeBinding.getAttribute().getName(),
          type,
          lazyAvailable && pluralAttributeBinding.isLazy(),
          // TODO: fix this when HHH-6356 is fixed; for now assume AbstractPluralAttributeBinding is updatable and insertable
          true, // pluralAttributeBinding.isInsertable(),
          true, //pluralAttributeBinding.isUpdatable(),
          false,
          false,
          false, // nullable - not sure what that means for a collection
          // TODO: fix this when HHH-6356 is fixed; for now assume AbstractPluralAttributeBinding is updatable and insertable
          //alwaysDirtyCheck || pluralAttributeBinding.isUpdatable(),
          true,
          pluralAttributeBinding.isIncludedInOptimisticLocking(),
          cascadeStyle,
          fetchMode
        );
    }
  }
View Full Code Here

  }

  private void bindPersistentCollection(PluralAttributeSource attributeSource, AttributeBindingContainer attributeBindingContainer) {
    final PluralAttribute existingAttribute = attributeBindingContainer.getAttributeContainer()
        .locatePluralAttribute( attributeSource.getName() );
    final AbstractPluralAttributeBinding pluralAttributeBinding;

    if ( attributeSource.getPluralAttributeNature() == PluralAttributeNature.BAG ) {
      final PluralAttribute attribute = existingAttribute != null
          ? existingAttribute
          : attributeBindingContainer.getAttributeContainer().createBag( attributeSource.getName() );
View Full Code Here

TOP

Related Classes of org.hibernate.metamodel.binding.AbstractPluralAttributeBinding

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.