Package org.hibernate.annotations

Examples of org.hibernate.annotations.Type


    String type = BinderHelper.ANNOTATION_STRING_DEFAULT;

    final boolean isNationalized = property.isAnnotationPresent( Nationalized.class )
        || mappings.useNationalizedCharacterData();

    Type annType = property.getAnnotation( Type.class );
    if ( annType != null ) {
      setExplicitType( annType );
      type = explicitType;
    }
    else if ( ( !key && property.isAnnotationPresent( Temporal.class ) )
View Full Code Here


          mappings
      );
      Table table = collection.getCollectionTable();
      simpleValue.setTable( table );
      simpleValue.setColumns( idColumns );
      Type typeAnn = collectionIdAnn.type();
      if ( typeAnn != null && !BinderHelper.isDefault( typeAnn.type() ) ) {
        simpleValue.setExplicitType( typeAnn );
      }
      else {
        throw new AnnotationException( "@CollectionId is missing type: "
            + StringHelper.qualify( propertyHolder.getPath(), propertyName ) );
View Full Code Here

        }
      }
    }
    explicitType = type;
    this.typeParameters = typeParameters;
    Type annType = (Type) property.getAnnotation( Type.class );
    setExplicitType( annType );
  }
View Full Code Here

          mappings
      );
      Table table = collection.getCollectionTable();
      simpleValue.setTable( table );
      simpleValue.setColumns( idColumns );
      Type typeAnn = collectionIdAnn.type();
      if ( typeAnn != null && !BinderHelper.isDefault( typeAnn.type() ) ) {
        simpleValue.setExplicitType( typeAnn );
      }
      else {
        throw new AnnotationException( "@CollectionId is missing type: "
            + StringHelper.qualify( propertyHolder.getPath(), propertyName ) );
View Full Code Here

        }
      }
    }
    explicitType = type;
    this.typeParameters = typeParameters;
    Type annType = property.getAnnotation( Type.class );
    setExplicitType( annType );
  }
View Full Code Here

      GeneratedValue generatedValue = property.getAnnotation( GeneratedValue.class );
      String generatorType = generatedValue != null ? generatorType( generatedValue.strategy() ) : "assigned";
      String generator = generatedValue != null ? generatedValue.generator() : BinderHelper.ANNOTATION_STRING_DEFAULT;
      if ( isComponent ) generatorType = "assigned"; //a component must not have any generator
      Type typeAnn = property.getAnnotation( Type.class );
      bindId(
          generatorType,
          generator,
          inferredData,
          columns,
View Full Code Here

        }
      }
    }
    explicitType = type;
    this.typeParameters = typeParameters;
    Type annType = property.getAnnotation( Type.class );
    setExplicitType( annType );
  }
View Full Code Here

        idColumn.setNullable(false);
      }
      Table table = collection.getCollectionTable();
      simpleValue.setTable( table );
      simpleValue.setColumns( idColumns );
      Type typeAnn = collectionIdAnn.type();
      if ( typeAnn != null && !BinderHelper.isDefault( typeAnn.type() ) ) {
        simpleValue.setExplicitType( typeAnn );
      }
      else {
        throw new AnnotationException( "@CollectionId is missing type: "
            + StringHelper.qualify( propertyHolder.getPath(), propertyName ) );
View Full Code Here

    String type = BinderHelper.ANNOTATION_STRING_DEFAULT;

    final boolean isNationalized = property.isAnnotationPresent( Nationalized.class )
        || mappings.useNationalizedCharacterData();

    Type annType = property.getAnnotation( Type.class );
    if ( annType != null ) {
      setExplicitType( annType );
      type = explicitType;
    }
    else if ( ( !key && property.isAnnotationPresent( Temporal.class ) )
View Full Code Here

        idColumn.setNullable(false);
      }
      Table table = collection.getCollectionTable();
      simpleValue.setTable( table );
      simpleValue.setColumns( idColumns );
      Type typeAnn = collectionIdAnn.type();
      if ( typeAnn != null && !BinderHelper.isEmptyAnnotationValue( typeAnn.type() ) ) {
        simpleValue.setExplicitType( typeAnn );
      }
      else {
        throw new AnnotationException( "@CollectionId is missing type: "
            + StringHelper.qualify( propertyHolder.getPath(), propertyName ) );
View Full Code Here

TOP

Related Classes of org.hibernate.annotations.Type

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.