Examples of MapKey


Examples of javax.persistence.MapKey

            }
        }
    }

  private void addPropertyMapKey(XProperty property, PropertyAuditingData propertyData) {
    MapKey mapKey = property.getAnnotation(MapKey.class);
    if (mapKey != null) {
      propertyData.setMapKey(mapKey.name());
    }
  }
View Full Code Here

Examples of javax.persistence.MapKey

    return true;
  }

  private void addPropertyMapKey(XProperty property, PropertyAuditingData propertyData) {
    MapKey mapKey = property.getAnnotation(MapKey.class);
    if (mapKey != null) {
      propertyData.setMapKey(mapKey.name());
    }
  }
View Full Code Here

Examples of javax.persistence.MapKey

          propertyHolder.getEntityName(),
          property,
          !indexColumn.isImplicit()
      );
      collectionBinder.setIndexColumn( indexColumn );
      MapKey mapKeyAnn = property.getAnnotation( MapKey.class );
      collectionBinder.setMapKey( mapKeyAnn );
      collectionBinder.setPropertyName( inferredData.getPropertyName() );
      BatchSize batchAnn = property.getAnnotation( BatchSize.class );
      collectionBinder.setBatchSize( batchAnn );
      javax.persistence.OrderBy ejb3OrderByAnn = property.getAnnotation( javax.persistence.OrderBy.class );
View Full Code Here

Examples of javax.persistence.MapKey

            property.isAnnotationPresent( CollectionOfElements.class )
                || property.isAnnotationPresent( org.hibernate.annotations.MapKey.class )
            // || property.isAnnotationPresent( ManyToAny.class )
        );
        collectionBinder.setIndexColumn( indexColumn );
        MapKey mapKeyAnn = property.getAnnotation( MapKey.class );
        collectionBinder.setMapKey( mapKeyAnn );
        collectionBinder.setPropertyName( inferredData.getPropertyName() );
        BatchSize batchAnn = property.getAnnotation( BatchSize.class );
        collectionBinder.setBatchSize( batchAnn );
        javax.persistence.OrderBy ejb3OrderByAnn = property.getAnnotation( javax.persistence.OrderBy.class );
View Full Code Here

Examples of javax.persistence.MapKey

          propertyHolder.getEntityName(),
          property,
          !indexColumn.isImplicit()
      );
      collectionBinder.setIndexColumn( indexColumn );
      MapKey mapKeyAnn = property.getAnnotation( MapKey.class );
      collectionBinder.setMapKey( mapKeyAnn );
      collectionBinder.setPropertyName( inferredData.getPropertyName() );
      BatchSize batchAnn = property.getAnnotation( BatchSize.class );
      collectionBinder.setBatchSize( batchAnn );
      javax.persistence.OrderBy ejb3OrderByAnn = property.getAnnotation( javax.persistence.OrderBy.class );
View Full Code Here

Examples of javax.persistence.MapKey

            property.isAnnotationPresent( CollectionOfElements.class )
            || property.isAnnotationPresent( org.hibernate.annotations.MapKey.class )
                // || property.isAnnotationPresent( ManyToAny.class )
        );
        collectionBinder.setIndexColumn( indexColumn );
        MapKey mapKeyAnn = property.getAnnotation( MapKey.class );
        collectionBinder.setMapKey( mapKeyAnn );
        collectionBinder.setPropertyName( inferredData.getPropertyName() );
        BatchSize batchAnn = property.getAnnotation( BatchSize.class );
        collectionBinder.setBatchSize( batchAnn );
        javax.persistence.OrderBy ejb3OrderByAnn = property.getAnnotation( javax.persistence.OrderBy.class );
View Full Code Here

Examples of javax.persistence.MapKey

            }
        }
    }

  private void addPropertyMapKey(XProperty property, PropertyAuditingData propertyData) {
    MapKey mapKey = property.getAnnotation(MapKey.class);
    if (mapKey != null) {
      propertyData.setMapKey(mapKey.name());
    }
  }
View Full Code Here

Examples of org.apache.ibatis.annotations.MapKey

    }
    if (List.class.isAssignableFrom(method.getReturnType())) {
      returnsList = true;
    }
    if (Map.class.isAssignableFrom(method.getReturnType())) {
      final MapKey mapKeyAnnotation = method.getAnnotation(MapKey.class);
      if (mapKeyAnnotation != null) {
        mapKey = mapKeyAnnotation.value();
        returnsMap = true;
      }
    }

    final Class<?>[] argTypes = method.getParameterTypes();
View Full Code Here

Examples of org.apache.ibatis.annotations.MapKey

    }

    private String getMapKey(Method method) {
      String mapKey = null;
      if (Map.class.isAssignableFrom(method.getReturnType())) {
        final MapKey mapKeyAnnotation = method.getAnnotation(MapKey.class);
        if (mapKeyAnnotation != null) {
          mapKey = mapKeyAnnotation.value();
        }
      }
      return mapKey;
    }
View Full Code Here

Examples of org.hibernate.annotations.MapKey

            column.setTable( mapValue.getCollectionTable() );
          }
          elementBinder.setColumns( elementColumns );
          //do not call setType as it extract the type from @Type
          //the algorithm generally does not apply for map key anyway
          MapKey mapKeyAnn = property.getAnnotation( org.hibernate.annotations.MapKey.class );
          if (mapKeyAnn != null && ! BinderHelper.isDefault( mapKeyAnn.type().type() ) ) {
            elementBinder.setExplicitType( mapKeyAnn.type() );
          }
          mapValue.setIndex( elementBinder.make() );
        }
      }
      //FIXME pass the Index Entity JoinColumns
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.