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()
          : 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

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.