Package org.hibernate.persister.collection

Examples of org.hibernate.persister.collection.CollectionPropertyMapping


    collectionName = name;
    collectionOwnerName = currentName;
    currentName = name;
    currentProperty = propertyName;
    componentPath.setLength( 0 );
    currentPropertyMapping = new CollectionPropertyMapping( collPersister );
  }
View Full Code Here


        q.addCollection( collectionName, collectionRole );
        elementName = q.createNameFor( clazz );
        addJoin( elementName, ( AssociationType ) collectionElementType );
      }
      q.addFrom( elementName, clazz, joinSequence );
      currentPropertyMapping = new CollectionPropertyMapping( collectionPersister );
      return elementName;
    }
    else {
      // collections of values
      q.addFromCollection( collectionName, collectionRole, joinSequence );
View Full Code Here

      return ( PropertyMapping ) persister;  // Return the entity property mapping.
    }
    // If the property is a special collection property name, return a CollectionPropertyMapping.
    if ( CollectionProperties.isCollectionProperty( propertyName ) ) {
      if ( collectionPropertyMapping == null ) {
        collectionPropertyMapping = new CollectionPropertyMapping( queryableCollection );
      }
      return collectionPropertyMapping;
    }
    if ( queryableCollection.getElementType().isAnyType() ) {
      // collection of <many-to-any/> mappings...
View Full Code Here

   */
  public QueryableCollection requireQueryableCollection(String role) throws QueryException {
    try {
      QueryableCollection queryableCollection = ( QueryableCollection ) sfi.getCollectionPersister( role );
      if ( queryableCollection != null ) {
        collectionPropertyMappingByRole.put( role, new CollectionPropertyMapping( queryableCollection ) );
      }
      return queryableCollection;
    }
    catch ( ClassCastException cce ) {
      throw new QueryException( "collection role is not queryable: " + role );
View Full Code Here

      return ( PropertyMapping ) persister;  // Return the entity property mapping.
    }
    // If the property is a special collection property name, return a CollectionPropertyMapping.
    if ( CollectionProperties.isCollectionProperty( propertyName ) ) {
      if ( collectionPropertyMapping == null ) {
        collectionPropertyMapping = new CollectionPropertyMapping( queryableCollection );
      }
      return collectionPropertyMapping;
    }
    if ( queryableCollection.getElementType().isAnyType() ) {
      // collection of <many-to-any/> mappings...
View Full Code Here

    }

    // If the property is a special collection property name, return a CollectionPropertyMapping.
    if ( CollectionProperties.isCollectionProperty( propertyName ) ) {
      if ( collectionPropertyMapping == null ) {
        collectionPropertyMapping = new CollectionPropertyMapping( queryableCollection );
      }
      return collectionPropertyMapping;
    }

    if ( queryableCollection.getElementType().isAnyType() ) {
View Full Code Here

   */
  public QueryableCollection requireQueryableCollection(String role) throws QueryException {
    try {
      QueryableCollection queryableCollection = (QueryableCollection) sfi.getCollectionPersister( role );
      if ( queryableCollection != null ) {
        collectionPropertyMappingByRole.put( role, new CollectionPropertyMapping( queryableCollection ) );
      }
      return queryableCollection;
    }
    catch ( ClassCastException cce ) {
      throw new QueryException( "collection role is not queryable: " + role );
View Full Code Here

    collectionName = name;
    collectionOwnerName = currentName;
    currentName = name;
    currentProperty = propertyName;
    componentPath.setLength( 0 );
    currentPropertyMapping = new CollectionPropertyMapping( collPersister );
  }
View Full Code Here

        q.addCollection( collectionName, collectionRole );
        elementName = q.createNameFor( clazz );
        addJoin( elementName, ( AssociationType ) collectionElementType );
      }
      q.addFrom( elementName, clazz, joinSequence );
      currentPropertyMapping = new CollectionPropertyMapping( collectionPersister );
      return elementName;
    }
    else {
      // collections of values
      q.addFromCollection( collectionName, collectionRole, joinSequence );
View Full Code Here

      return ( PropertyMapping ) persister;  // Return the entity property mapping.
    }
    // If the property is a special collection property name, return a CollectionPropertyMapping.
    if ( CollectionProperties.isCollectionProperty( propertyName ) ) {
      if ( collectionPropertyMapping == null ) {
        collectionPropertyMapping = new CollectionPropertyMapping( queryableCollection );
      }
      return collectionPropertyMapping;
    }
    if ( queryableCollection.getElementType().isAnyType() ) {
      // collection of <many-to-any/> mappings...
View Full Code Here

TOP

Related Classes of org.hibernate.persister.collection.CollectionPropertyMapping

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.