Package javax.persistence

Examples of javax.persistence.MapKey


    OrderBy orderBy = get(prop, OrderBy.class);
    if (orderBy != null) {
      prop.setFetchOrderBy(orderBy.value());
    }

    MapKey mapKey = get(prop, MapKey.class);
    if (mapKey != null) {
      prop.setMapKey(mapKey.name());
    }

    Where where = get(prop, Where.class);
    if (where != null) {
      prop.setExtraWhere(where.clause());
View Full Code Here


          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

            }
        }
    }

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

            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

            }
        }
    }

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

            }
        }
    }

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

          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

            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

            }
        }
    }

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

            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

TOP

Related Classes of javax.persistence.MapKey

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.