Examples of make()


Examples of org.hibernate.cfg.annotations.PropertyBinder.make()

      binder.setInsertable( columns[0].isInsertable() );
      binder.setUpdatable( columns[0].isUpdatable() );
    }
    binder.setPropertyAccessorName( inferredData.getDefaultAccess() );
    binder.setCascade( cascadeStrategy );
    Property prop = binder.make();
    //composite FK columns are in the same table so its OK
    propertyHolder.addProperty( prop, columns );
  }

  private static String generatorType(GenerationType generatorEnum) {
View Full Code Here

Examples of org.hibernate.cfg.annotations.PropertyBinder.make()

    PropertyBinder binder = new PropertyBinder();
    binder.setName( propertyName );
    binder.setValue( value );
    binder.setCascade( cascadeStrategy );
    binder.setPropertyAccessorName( inferredData.getDefaultAccess() );
    Property prop = binder.make();
    if ( BinderHelper.isDefault( mappedBy ) ) {
      /*
       * we need to check if the columns are in the right order
       * if not, then we need to create a many to one and formula
       * but actually, since entities linked by a one to one need
View Full Code Here

Examples of org.hibernate.cfg.annotations.PropertyBinder.make()

    PropertyBinder binder = new PropertyBinder();
    binder.setName( inferredData.getPropertyName() );
    binder.setValue( comp );
    binder.setProperty( inferredData.getProperty() );
    binder.setPropertyAccessorName( inferredData.getDefaultAccess() );
    Property prop = binder.make();
    propertyHolder.addProperty( prop );
  }

  public static Component fillComponent(
      PropertyHolder propertyHolder, PropertyData inferredData,
View Full Code Here

Examples of org.hibernate.cfg.annotations.PropertyBinder.make()

      PropertyBinder binder = new PropertyBinder();
      binder.setName( inferredData.getPropertyName() );
      binder.setValue( id );
      binder.setPropertyAccessorName( inferredData.getDefaultAccess() );
      binder.setProperty( inferredData.getProperty() );
      Property prop = binder.make();
      rootClass.setIdentifierProperty( prop );
    }
  }

  private static void bindManyToOne(
View Full Code Here

Examples of org.hibernate.cfg.annotations.PropertyBinder.make()

      binder.setInsertable( columns[0].isInsertable() );
      binder.setUpdatable( columns[0].isUpdatable() );
    }
    binder.setPropertyAccessorName( inferredData.getDefaultAccess() );
    binder.setCascade( cascadeStrategy );
    Property prop = binder.make();
    //composite FK columns are in the same table so its OK
    propertyHolder.addProperty( prop, columns );
  }

  protected static void defineFetchingStrategy(ToOne toOne, XProperty property) {
View Full Code Here

Examples of org.hibernate.cfg.annotations.PropertyBinder.make()

    PropertyBinder binder = new PropertyBinder();
    binder.setName( inferredData.getPropertyName() );
    binder.setValue( comp );
    binder.setProperty( inferredData.getProperty() );
    binder.setPropertyAccessorName( inferredData.getDefaultAccess() );
    Property prop = binder.make();
    propertyHolder.addProperty( prop, inferredData.getDeclaringClass() );
  }

  public static Component fillComponent(
      PropertyHolder propertyHolder, PropertyData inferredData,
View Full Code Here

Examples of org.hibernate.cfg.annotations.PropertyBinder.make()

      PropertyBinder binder = new PropertyBinder();
      binder.setName( inferredData.getPropertyName() );
      binder.setValue( id );
      binder.setPropertyAccessorName( inferredData.getDefaultAccess() );
      binder.setProperty( inferredData.getProperty() );
      Property prop = binder.make();
      rootClass.setIdentifierProperty( prop );
      //if the id property is on a superclass, update the metamodel
      final org.hibernate.mapping.MappedSuperclass superclass = BinderHelper.getMappedSuperclassOrNull(
          inferredData.getDeclaringClass(),
          inheritanceStatePerClass,
View Full Code Here

Examples of org.hibernate.cfg.annotations.PropertyBinder.make()

      binder.setUpdatable( columns[0].isUpdatable() );
    }
    binder.setPropertyAccessorName( inferredData.getDefaultAccess() );
    binder.setCascade( cascadeStrategy );
    binder.setProperty(inferredData.getProperty());
    Property prop = binder.make();
    //composite FK columns are in the same table so its OK
    propertyHolder.addProperty( prop, columns, inferredData.getDeclaringClass() );
  }

  protected static void defineFetchingStrategy(ToOne toOne, XProperty property) {
View Full Code Here

Examples of org.hibernate.cfg.annotations.PropertyBinder.make()

      binder.setInsertable( columns[0].isInsertable() );
      binder.setUpdatable( columns[0].isUpdatable() );
    }
    binder.setPropertyAccessorName( inferredData.getDefaultAccess() );
    binder.setCascade( cascadeStrategy );
    Property prop = binder.make();
    //composite FK columns are in the same table so its OK
    propertyHolder.addProperty( prop, columns, inferredData.getDeclaringClass() );
  }

  private static String generatorType(GenerationType generatorEnum) {
View Full Code Here

Examples of org.hibernate.cfg.annotations.SimpleValueBinder.make()

      value.setColumns( columns );
      value.setPersistentClassName( persistentClassName );
      value.setMappings( mappings );
      value.setType( inferredData.getProperty(), inferredData.getClassOrElement(), persistentClassName, null );
      value.setAccessType( propertyAccessor );
      id = value.make();
    }
    rootClass.setIdentifier( id );
    BinderHelper.makeIdGenerator( id, generatorType, generatorName, mappings, localGenerators );
    if ( isEmbedded ) {
      rootClass.setEmbeddedIdentifier( inferredData.getPropertyClass() == null );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.