Package org.hibernate.mapping

Examples of org.hibernate.mapping.Any


      if ( "many-to-one".equals( name ) ) {
        value = new ManyToOne( table );
        bindManyToOne( subnode, (ManyToOne) value, propertyName, true, mappings );
      }
      else if ( "any".equals( name ) ) {
        value = new Any( table );
        bindAny( subnode, (Any) value, true, mappings );
      }
      else if ( "property".equals( name ) ) {
        value = new SimpleValue( table );
        bindSimpleValue( subnode, (SimpleValue) value, true, propertyName, mappings );
View Full Code Here


          relativePath = subpath.substring( component.getOwner().getEntityName().length() + 1 );
        }
        bindOneToOne( subnode, (OneToOne) value, relativePath, isNullable, mappings );
      }
      else if ( "any".equals( name ) ) {
        value = new Any( component.getTable() );
        bindAny( subnode, (Any) value, isNullable, mappings );
      }
      else if ( "property".equals( name ) || "key-property".equals( name ) ) {
        value = new SimpleValue( component.getTable() );
        String relativePath;
View Full Code Here

      else if ( "many-to-one".equals( name ) ) {
        value = new ManyToOne( table );
        bindManyToOne( subnode, (ManyToOne) value, propertyName, nullable, mappings );
      }
      else if ( "any".equals( name ) ) {
        value = new Any( table );
        bindAny( subnode, (Any) value, nullable, mappings );
      }
      else if ( "one-to-one".equals( name ) ) {
        value = new OneToOne( table, persistentClass );
        bindOneToOne( subnode, (OneToOne) value, propertyName, true, mappings );
View Full Code Here

            inheritedMetas
          );
        map.setIndex( component );
      }
      else if ( "index-many-to-any".equals( name ) ) {
        Any any = new Any( map.getCollectionTable() );
        bindAny( subnode, any, map.isOneToMany(), mappings );
        map.setIndex( any );
      }
    }
View Full Code Here

            mappings,
            inheritedMetas
          );
      }
      else if ( "many-to-any".equals( name ) ) {
        Any element = new Any( collection.getCollectionTable() );
        collection.setElement( element );
        bindAny( subnode, element, true, mappings );
      }
      else if ( "cache".equals( name ) ) {
        collection.setCacheConcurrencyStrategy( subnode.attributeValue( "usage" ) );
View Full Code Here

      throw new AssertionFailure(
          "Missing @Any annotation: "
              + BinderHelper.getPath( propertyHolder, inferredData )
      );
    }
    Any value = BinderHelper.buildAnyValue(
        anyAnn.metaDef(), columns, anyAnn.metaColumn(), inferredData,
        cascadeOnDelete, nullability, propertyHolder, entityBinder, anyAnn.optional(), mappings
    );

    PropertyBinder binder = new PropertyBinder();
View Full Code Here

      if ( "many-to-one".equals( name ) ) {
        value = new ManyToOne( mappings, table );
        bindManyToOne( subnode, (ManyToOne) value, propertyName, true, mappings );
      }
      else if ( "any".equals( name ) ) {
        value = new Any( mappings, table );
        bindAny( subnode, (Any) value, true, mappings );
      }
      else if ( "property".equals( name ) ) {
        value = new SimpleValue( mappings, table );
        bindSimpleValue( subnode, (SimpleValue) value, true, propertyName, mappings );
View Full Code Here

          relativePath = subpath.substring( component.getOwner().getEntityName().length() + 1 );
        }
        bindOneToOne( subnode, (OneToOne) value, relativePath, isNullable, mappings );
      }
      else if ( "any".equals( name ) ) {
        value = new Any( mappings, component.getTable() );
        bindAny( subnode, (Any) value, isNullable, mappings );
      }
      else if ( "property".equals( name ) || "key-property".equals( name ) ) {
        value = new SimpleValue( mappings, component.getTable() );
        String relativePath;
View Full Code Here

      else if ( "many-to-one".equals( name ) ) {
        value = new ManyToOne( mappings, table );
        bindManyToOne( subnode, (ManyToOne) value, propertyName, nullable, mappings );
      }
      else if ( "any".equals( name ) ) {
        value = new Any( mappings, table );
        bindAny( subnode, (Any) value, nullable, mappings );
      }
      else if ( "one-to-one".equals( name ) ) {
        value = new OneToOne( mappings, table, persistentClass );
        bindOneToOne( subnode, (OneToOne) value, propertyName, true, mappings );
View Full Code Here

            inheritedMetas
          );
        map.setIndex( component );
      }
      else if ( "index-many-to-any".equals( name ) ) {
        Any any = new Any( mappings, map.getCollectionTable() );
        bindAny( subnode, any, map.isOneToMany(), mappings );
        map.setIndex( any );
      }
    }
View Full Code Here

TOP

Related Classes of org.hibernate.mapping.Any

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.