Examples of MetaAttribute


Examples of org.hibernate.mapping.MetaAttribute

      return c2j.toJavaDoc( c2j.getMetaAsString( property, "field-description" ), indent );
    }
  }
 
  public String getFieldDescription(Property property){
    MetaAttribute c = property.getMetaAttribute( "field-description" );
    if ( c == null ) {
      return "";
    }
    else {
      return c2j.getMetaAsString( property, "field-description" );
View Full Code Here

Examples of org.hibernate.mapping.MetaAttribute

    return getModifiers( property, "scope-set", "public" );
  }

  //TODO defaultModifiers
  private String getModifiers(Property property, String modifiername, String defaultModifiers) {
    MetaAttribute override = property.getMetaAttribute( modifiername );
    if ( override != null ) {
      return MetaAttributeHelper.getMetaAsString( override );
    }
    else {
      return defaultModifiers;
View Full Code Here

Examples of org.hibernate.mapping.MetaAttribute

      if ( onlyInheritable & !inheritable ) {
        continue;
      }
      String name = metaNode.attributeValue( "attribute" );

      MetaAttribute meta = (MetaAttribute) map.get( name );
      MetaAttribute inheritedAttribute = (MetaAttribute) inheritedMeta.get( name );
      if ( meta == null  ) {
        meta = new MetaAttribute( name );
        map.put( name, meta );
      } else if (meta == inheritedAttribute) { // overriding inherited meta attribute. HBX-621 & HBX-793
        meta = new MetaAttribute( name );
        map.put( name, meta );
      }
      meta.addValue( metaNode.getText() );
    }
    return map;
View Full Code Here

Examples of org.hibernate.mapping.MetaAttribute

      if ( onlyInheritable & !inheritable ) {
        continue;
      }
      String name = metaNode.attributeValue( "attribute" );

      MetaAttribute meta = (MetaAttribute) map.get( name );
      MetaAttribute inheritedAttribute = (MetaAttribute) inheritedMeta.get( name );
      if ( meta == null  ) {
        meta = new MetaAttribute( name );
        map.put( name, meta );
      } else if (meta == inheritedAttribute) { // overriding inherited meta attribute. HBX-621 & HBX-793
        meta = new MetaAttribute( name );
        map.put( name, meta );
      }
      meta.addValue( metaNode.getText() );
    }
    return map;
View Full Code Here

Examples of org.hibernate.mapping.MetaAttribute

      if ( onlyInheritable && !inheritable ) {
        continue;
      }
      String name = metaNode.attributeValue( "attribute" );

      MetaAttribute meta = (MetaAttribute) map.get( name );
      MetaAttribute inheritedAttribute = (MetaAttribute) inheritedMeta.get( name );
      if ( meta == null  ) {
        meta = new MetaAttribute( name );
        map.put( name, meta );
      } else if (meta == inheritedAttribute) { // overriding inherited meta attribute. HBX-621 & HBX-793
        meta = new MetaAttribute( name );
        map.put( name, meta );
      }
      meta.addValue( metaNode.getText() );
    }
    return map;
View Full Code Here

Examples of org.hibernate.mapping.MetaAttribute

      if ( onlyInheritable & !inheritable ) {
        continue;
      }
      String name = metaNode.attributeValue( "attribute" );

      MetaAttribute meta = (MetaAttribute) map.get( name );
      MetaAttribute inheritedAttribute = (MetaAttribute) inheritedMeta.get( name );
      if ( meta == null  ) {
        meta = new MetaAttribute( name );
        map.put( name, meta );
      } else if (meta == inheritedAttribute) { // overriding inherited meta attribute. HBX-621 & HBX-793     
        meta = new MetaAttribute( name );       
        map.put( name, meta );       
      }     
      meta.addValue( metaNode.getText() );
    }
    return map;
View Full Code Here

Examples of org.hibernate.mapping.MetaAttribute

      if ( onlyInheritable & !inheritable ) {
        continue;
      }
      String name = metaNode.attributeValue( "attribute" );

      MetaAttribute meta = (MetaAttribute) map.get( name );
      MetaAttribute inheritedAttribute = (MetaAttribute) inheritedMeta.get( name );
      if ( meta == null  ) {
        meta = new MetaAttribute( name );
        map.put( name, meta );
      } else if (meta == inheritedAttribute) { // overriding inherited meta attribute. HBX-621 & HBX-793
        meta = new MetaAttribute( name );
        map.put( name, meta );
      }
      meta.addValue( metaNode.getText() );
    }
    return map;
View Full Code Here

Examples of org.hibernate.metamodel.binding.MetaAttribute

      if ( onlyInheritable & !metaElement.isInherit() ) {
        continue;
      }

      final String name = metaElement.getAttribute();
      final MetaAttribute inheritedMetaAttribute = parentContext.getMetaAttribute( name );
      MetaAttribute metaAttribute = subContext.getLocalMetaAttribute( name );
      if ( metaAttribute == null || metaAttribute == inheritedMetaAttribute ) {
        metaAttribute = new MetaAttribute( name );
        subContext.add( metaAttribute );
      }
      metaAttribute.addValue( metaElement.getValue() );
    }

    return subContext;
  }
View Full Code Here

Examples of org.hibernate.metamodel.binding.MetaAttribute

      if ( onlyInheritable & !metaAttributeSource.isInheritable() ) {
        continue;
      }

      final String name = metaAttributeSource.getName();
      final MetaAttribute inheritedMetaAttribute = parentContext.getMetaAttribute( name );
      MetaAttribute metaAttribute = subContext.getLocalMetaAttribute( name );
      if ( metaAttribute == null || metaAttribute == inheritedMetaAttribute ) {
        metaAttribute = new MetaAttribute( name );
        subContext.add( metaAttribute );
      }
      metaAttribute.addValue( metaAttributeSource.getValue() );
    }

    return subContext;
  }
View Full Code Here

Examples of org.hibernate.metamodel.binding.MetaAttribute

      if ( onlyInheritable & !metaElement.isInherit() ) {
        continue;
      }

      final String name = metaElement.getAttribute();
      final MetaAttribute inheritedMetaAttribute = parentContext.getMetaAttribute( name );
      MetaAttribute metaAttribute = subContext.getLocalMetaAttribute( name );
      if ( metaAttribute == null || metaAttribute == inheritedMetaAttribute ) {
        metaAttribute = new MetaAttribute( name );
        subContext.add( metaAttribute );
      }
      metaAttribute.addValue( metaElement.getValue() );
    }

    return subContext;
  }
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.