Package org.hibernate.annotations

Examples of org.hibernate.annotations.MapKeyType


          }
          elementBinder.setColumns( elementColumns );
          //do not call setType as it extract the type from @Type
          //the algorithm generally does not apply for map key anyway
          elementBinder.setKey(true);
          MapKeyType mapKeyTypeAnnotation = property.getAnnotation( MapKeyType.class );
          if ( mapKeyTypeAnnotation != null
              && !BinderHelper.isEmptyAnnotationValue( mapKeyTypeAnnotation.value() .type() ) ) {
            elementBinder.setExplicitType( mapKeyTypeAnnotation.value() );
          }
          else {
            elementBinder.setType(
                property,
                keyXClass,
View Full Code Here


          }
          elementBinder.setColumns( elementColumns );
          //do not call setType as it extract the type from @Type
          //the algorithm generally does not apply for map key anyway
          elementBinder.setKey(true);
          MapKeyType mapKeyTypeAnnotation = property.getAnnotation( MapKeyType.class );
          if ( mapKeyTypeAnnotation != null && !BinderHelper.isEmptyAnnotationValue(
              mapKeyTypeAnnotation.value()
                  .type()
          ) ) {
            elementBinder.setExplicitType( mapKeyTypeAnnotation.value() );
          }
          else {
            elementBinder.setType( property, elementClass, this.collection.getOwnerEntityName() );
          }
          elementBinder.setPersistentClassName( propertyHolder.getEntityName() );
View Full Code Here

          elementBinder.setKey(true);
          if (mapKeyAnn != null && ! BinderHelper.isEmptyAnnotationValue( mapKeyAnn.type().type() ) ) {
            elementBinder.setExplicitType( mapKeyAnn.type() );
          }
          else {
            MapKeyType mapKeyTypeAnnotation = property.getAnnotation( MapKeyType.class );
            if ( mapKeyTypeAnnotation != null && ! BinderHelper.isEmptyAnnotationValue( mapKeyTypeAnnotation.value().type() ) ) {
              elementBinder.setExplicitType( mapKeyTypeAnnotation.value() );
            }
            else {
              elementBinder.setType( property, elementClass );
            }
          }
View Full Code Here

          elementBinder.setKey(true);
          if (mapKeyAnn != null && ! BinderHelper.isDefault( mapKeyAnn.type().type() ) ) {
            elementBinder.setExplicitType( mapKeyAnn.type() );
          }
          else {
            MapKeyType mapKeyTypeAnnotation = property.getAnnotation( MapKeyType.class );
            if ( mapKeyTypeAnnotation != null && ! BinderHelper.isDefault( mapKeyTypeAnnotation.value().type() ) ) {
              elementBinder.setExplicitType( mapKeyTypeAnnotation.value() );
            }
            else {
              elementBinder.setType( property, elementClass );
            }
          }
View Full Code Here

          }
          elementBinder.setColumns( elementColumns );
          //do not call setType as it extract the type from @Type
          //the algorithm generally does not apply for map key anyway
          elementBinder.setKey(true);
          MapKeyType mapKeyTypeAnnotation = property.getAnnotation( MapKeyType.class );
          if ( mapKeyTypeAnnotation != null && !BinderHelper.isEmptyAnnotationValue(
              mapKeyTypeAnnotation.value()
                  .type()
          ) ) {
            elementBinder.setExplicitType( mapKeyTypeAnnotation.value() );
          }
          else {
            elementBinder.setType( property, elementClass );
          }
          mapValue.setIndex( elementBinder.make() );
View Full Code Here

          }
          elementBinder.setColumns( elementColumns );
          //do not call setType as it extract the type from @Type
          //the algorithm generally does not apply for map key anyway
          elementBinder.setKey(true);
          MapKeyType mapKeyTypeAnnotation = property.getAnnotation( MapKeyType.class );
          if ( mapKeyTypeAnnotation != null && !BinderHelper.isEmptyAnnotationValue(
              mapKeyTypeAnnotation.value()
                  .type()
          ) ) {
            elementBinder.setExplicitType( mapKeyTypeAnnotation.value() );
          }
          else {
            elementBinder.setType( property, elementClass );
          }
          elementBinder.setPersistentClassName( propertyHolder.getEntityName() );
View Full Code Here

          }
          elementBinder.setColumns( elementColumns );
          //do not call setType as it extract the type from @Type
          //the algorithm generally does not apply for map key anyway
          elementBinder.setKey(true);
          MapKeyType mapKeyTypeAnnotation = property.getAnnotation( MapKeyType.class );
          if ( mapKeyTypeAnnotation != null
              && !BinderHelper.isEmptyAnnotationValue( mapKeyTypeAnnotation.value() .type() ) ) {
            elementBinder.setExplicitType( mapKeyTypeAnnotation.value() );
          }
          else {
            elementBinder.setType(
                property,
                keyXClass,
View Full Code Here

          }
          elementBinder.setColumns( elementColumns );
          //do not call setType as it extract the type from @Type
          //the algorithm generally does not apply for map key anyway
          elementBinder.setKey(true);
          MapKeyType mapKeyTypeAnnotation = property.getAnnotation( MapKeyType.class );
          if ( mapKeyTypeAnnotation != null
              && !BinderHelper.isEmptyAnnotationValue( mapKeyTypeAnnotation.value() .type() ) ) {
            elementBinder.setExplicitType( mapKeyTypeAnnotation.value() );
          }
          else {
            elementBinder.setType(
                property,
                keyXClass,
View Full Code Here

          }
          elementBinder.setColumns( elementColumns );
          //do not call setType as it extract the type from @Type
          //the algorithm generally does not apply for map key anyway
          elementBinder.setKey(true);
          MapKeyType mapKeyTypeAnnotation = property.getAnnotation( MapKeyType.class );
          if ( mapKeyTypeAnnotation != null && !BinderHelper.isEmptyAnnotationValue(
              mapKeyTypeAnnotation.value()
                  .type()
          ) ) {
            elementBinder.setExplicitType( mapKeyTypeAnnotation.value() );
          }
          else {
            elementBinder.setType( property, elementClass, this.collection.getOwnerEntityName() );
          }
          elementBinder.setPersistentClassName( propertyHolder.getEntityName() );
View Full Code Here

          }
          elementBinder.setColumns( elementColumns );
          //do not call setType as it extract the type from @Type
          //the algorithm generally does not apply for map key anyway
          elementBinder.setKey(true);
          MapKeyType mapKeyTypeAnnotation = property.getAnnotation( MapKeyType.class );
          if ( mapKeyTypeAnnotation != null && !BinderHelper.isEmptyAnnotationValue(
              mapKeyTypeAnnotation.value()
                  .type()
          ) ) {
            elementBinder.setExplicitType( mapKeyTypeAnnotation.value() );
          }
          else {
            elementBinder.setType( property, elementClass );
          }
          mapValue.setIndex( elementBinder.make() );
View Full Code Here

TOP

Related Classes of org.hibernate.annotations.MapKeyType

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.