Examples of makeProperty()


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

      PropertyBinder binder = new PropertyBinder();
      binder.setName( propertyName );
      binder.setValue( id );
      binder.setAccessType( inferredData.getDefaultAccess() );
      binder.setProperty( inferredData.getProperty() );
      Property prop = binder.makeProperty();
      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.makeProperty()

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

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

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

    PropertyBinder binder = new PropertyBinder();
    binder.setName( propertyName );
    binder.setValue( value );
    binder.setCascade( cascadeStrategy );
    binder.setAccessType( inferredData.getDefaultAccess() );
    Property prop = binder.makeProperty();
    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.makeProperty()

      PropertyBinder binder = new PropertyBinder();
      binder.setName( propertyName );
      binder.setValue( id );
      binder.setAccessType( inferredData.getDefaultAccess() );
      binder.setProperty( inferredData.getProperty() );
      Property prop = binder.makeProperty();
      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.makeProperty()

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

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

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

      PropertyBinder binder = new PropertyBinder();
      binder.setName( propertyName );
      binder.setValue( id );
      binder.setAccessType( inferredData.getDefaultAccess() );
      binder.setProperty( inferredData.getProperty() );
      Property prop = binder.makeProperty();
      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.makeProperty()

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

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

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

      PropertyBinder binder = new PropertyBinder();
      binder.setName( propertyName );
      binder.setValue( id );
      binder.setAccessType( inferredData.getDefaultAccess() );
      binder.setProperty( inferredData.getProperty() );
      Property prop = binder.makeProperty();
      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.makeProperty()

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

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

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

      PropertyBinder binder = new PropertyBinder();
      binder.setName( propertyName );
      binder.setValue( id );
      binder.setAccessType( inferredData.getDefaultAccess() );
      binder.setProperty( inferredData.getProperty() );
      Property prop = binder.makeProperty();
      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
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.