Package org.hibernate.id

Examples of org.hibernate.id.CompositeNestedGeneratedValueGenerator$GenerationContextLocator


      // we have the "straight up" embedded (again the hibernate term) component identifier
      attributeDeclarer = entityClass;
    }

    locator = new StandardGenerationContextLocator( rootClass.getEntityName() );
    final CompositeNestedGeneratedValueGenerator generator = new CompositeNestedGeneratedValueGenerator( locator );

    Iterator itr = getPropertyIterator();
    while ( itr.hasNext() ) {
      final Property property = (Property) itr.next();
      if ( property.getValue().isSimpleValue() ) {
        final SimpleValue value = (SimpleValue) property.getValue();

        if ( DEFAULT_ID_GEN_STRATEGY.equals( value.getIdentifierGeneratorStrategy() ) ) {
          // skip any 'assigned' generators, they would have been handled by
          // the StandardGenerationContextLocator
          continue;
        }

        final IdentifierGenerator valueGenerator = value.createIdentifierGenerator(
            identifierGeneratorFactory,
            dialect,
            defaultCatalog,
            defaultSchema,
            rootClass
        );
        generator.addGeneratedValuePlan(
            new ValueGenerationPlan(
                property.getName(),
                valueGenerator,
                injector( property, attributeDeclarer )
            )
View Full Code Here


      // we have the "straight up" embedded (again the hibernate term) component identifier
      attributeDeclarer = entityClass;
    }

    locator = new StandardGenerationContextLocator( rootClass.getEntityName() );
    final CompositeNestedGeneratedValueGenerator generator = new CompositeNestedGeneratedValueGenerator( locator );

    Iterator itr = getPropertyIterator();
    while ( itr.hasNext() ) {
      final Property property = (Property) itr.next();
      if ( property.getValue().isSimpleValue() ) {
        final SimpleValue value = (SimpleValue) property.getValue();

        if ( DEFAULT_ID_GEN_STRATEGY.equals( value.getIdentifierGeneratorStrategy() ) ) {
          // skip any 'assigned' generators, they would have been handled by
          // the StandardGenerationContextLocator
          continue;
        }

        final IdentifierGenerator valueGenerator = value.createIdentifierGenerator(
            identifierGeneratorFactory,
            dialect,
            defaultCatalog,
            defaultSchema,
            rootClass
        );
        generator.addGeneratedValuePlan(
            new ValueGenerationPlan(
                property.getName(),
                valueGenerator,
                injector( property, attributeDeclarer )
            )
View Full Code Here

      // we have the "straight up" embedded (again the hibernate term) component identifier
      attributeDeclarer = entityClass;
    }

    locator = new StandardGenerationContextLocator( rootClass.getEntityName() );
    final CompositeNestedGeneratedValueGenerator generator = new CompositeNestedGeneratedValueGenerator( locator );

    Iterator itr = getPropertyIterator();
    while ( itr.hasNext() ) {
      final Property property = (Property) itr.next();
      if ( property.getValue().isSimpleValue() ) {
        final SimpleValue value = (SimpleValue) property.getValue();

        if ( DEFAULT_ID_GEN_STRATEGY.equals( value.getIdentifierGeneratorStrategy() ) ) {
          // skip any 'assigned' generators, they would have been handled by
          // the StandardGenerationContextLocator
          continue;
        }

        final IdentifierGenerator valueGenerator = value.createIdentifierGenerator(
            identifierGeneratorFactory,
            dialect,
            defaultCatalog,
            defaultSchema,
            rootClass
        );
        generator.addGeneratedValuePlan(
            new ValueGenerationPlan(
                property.getName(),
                valueGenerator,
                injector( property, attributeDeclarer )
            )
View Full Code Here

      // we have the "straight up" embedded (again the hibernate term) component identifier
      attributeDeclarer = entityClass;
    }

    locator = new StandardGenerationContextLocator( rootClass.getEntityName() );
    final CompositeNestedGeneratedValueGenerator generator = new CompositeNestedGeneratedValueGenerator( locator );

    Iterator itr = getPropertyIterator();
    while ( itr.hasNext() ) {
      final Property property = (Property) itr.next();
      if ( property.getValue().isSimpleValue() ) {
        final SimpleValue value = (SimpleValue) property.getValue();

        if ( DEFAULT_ID_GEN_STRATEGY.equals( value.getIdentifierGeneratorStrategy() ) ) {
          // skip any 'assigned' generators, they would have been handled by
          // the StandardGenerationContextLocator
          continue;
        }

        final IdentifierGenerator valueGenerator = value.createIdentifierGenerator(
            identifierGeneratorFactory,
            dialect,
            defaultCatalog,
            defaultSchema,
            rootClass
        );
        generator.addGeneratedValuePlan(
            new ValueGenerationPlan(
                property.getName(),
                valueGenerator,
                injector( property, attributeDeclarer )
            )
View Full Code Here

      // we have the "straight up" embedded (again the hibernate term) component identifier
      attributeDeclarer = entityClass;
    }

    locator = new StandardGenerationContextLocator( rootClass.getEntityName() );
    final CompositeNestedGeneratedValueGenerator generator = new CompositeNestedGeneratedValueGenerator( locator );

    Iterator itr = getPropertyIterator();
    while ( itr.hasNext() ) {
      final Property property = (Property) itr.next();
      if ( property.getValue().isSimpleValue() ) {
        final SimpleValue value = (SimpleValue) property.getValue();

        if ( DEFAULT_ID_GEN_STRATEGY.equals( value.getIdentifierGeneratorStrategy() ) ) {
          // skip any 'assigned' generators, they would have been handled by
          // the StandardGenerationContextLocator
          continue;
        }

        final IdentifierGenerator valueGenerator = value.createIdentifierGenerator(
            identifierGeneratorFactory,
            dialect,
            defaultCatalog,
            defaultSchema,
            rootClass
        );
        generator.addGeneratedValuePlan(
            new ValueGenerationPlan(
                property.getName(),
                valueGenerator,
                injector( property, attributeDeclarer )
            )
View Full Code Here

      // we have the "straight up" embedded (again the hibernate term) component identifier
      attributeDeclarer = entityClass;
    }

    locator = new StandardGenerationContextLocator( rootClass.getEntityName() );
    final CompositeNestedGeneratedValueGenerator generator = new CompositeNestedGeneratedValueGenerator( locator );

    Iterator itr = getPropertyIterator();
    while ( itr.hasNext() ) {
      final Property property = (Property) itr.next();
      if ( property.getValue().isSimpleValue() ) {
        final SimpleValue value = (SimpleValue) property.getValue();

        if ( DEFAULT_ID_GEN_STRATEGY.equals( value.getIdentifierGeneratorStrategy() ) ) {
          // skip any 'assigned' generators, they would have been handled by
          // the StandardGenerationContextLocator
          continue;
        }

        final IdentifierGenerator valueGenerator = value.createIdentifierGenerator(
            identifierGeneratorFactory,
            dialect,
            defaultCatalog,
            defaultSchema,
            rootClass
        );
        generator.addGeneratedValuePlan(
            new ValueGenerationPlan(
                property.getName(),
                valueGenerator,
                injector( property, attributeDeclarer )
            )
View Full Code Here

      // we have the "straight up" embedded (again the hibernate term) component identifier
      attributeDeclarer = entityClass;
    }

    locator = new StandardGenerationContextLocator( rootClass.getEntityName() );
    final CompositeNestedGeneratedValueGenerator generator = new CompositeNestedGeneratedValueGenerator( locator );

    Iterator itr = getPropertyIterator();
    while ( itr.hasNext() ) {
      final Property property = (Property) itr.next();
      if ( property.getValue().isSimpleValue() ) {
        final SimpleValue value = (SimpleValue) property.getValue();

        if ( DEFAULT_ID_GEN_STRATEGY.equals( value.getIdentifierGeneratorStrategy() ) ) {
          // skip any 'assigned' generators, they would have been handled by
          // the StandardGenerationContextLocator
          continue;
        }

        final IdentifierGenerator valueGenerator = value.createIdentifierGenerator(
            identifierGeneratorFactory,
            dialect,
            defaultCatalog,
            defaultSchema,
            rootClass
        );
        generator.addGeneratedValuePlan(
            new ValueGenerationPlan(
                property.getName(),
                valueGenerator,
                injector( property, attributeDeclarer )
            )
View Full Code Here

      // we have the "straight up" embedded (again the hibernate term) component identifier
      attributeDeclarer = entityClass;
    }

    locator = new StandardGenerationContextLocator( rootClass.getEntityName() );
    final CompositeNestedGeneratedValueGenerator generator = new CompositeNestedGeneratedValueGenerator( locator );

    Iterator itr = getPropertyIterator();
    while ( itr.hasNext() ) {
      final Property property = (Property) itr.next();
      if ( property.getValue().isSimpleValue() ) {
        final SimpleValue value = (SimpleValue) property.getValue();

        if ( DEFAULT_ID_GEN_STRATEGY.equals( value.getIdentifierGeneratorStrategy() ) ) {
          // skip any 'assigned' generators, they would have been handled by
          // the StandardGenerationContextLocator
          continue;
        }

        final IdentifierGenerator valueGenerator = value.createIdentifierGenerator(
            identifierGeneratorFactory,
            dialect,
            defaultCatalog,
            defaultSchema,
            rootClass
        );
        generator.addGeneratedValuePlan(
            new ValueGenerationPlan(
                property.getName(),
                valueGenerator,
                injector( property, attributeDeclarer )
            )
View Full Code Here

      // we have the "straight up" embedded (again the hibernate term) component identifier
      attributeDeclarer = entityClass;
    }

    locator = new StandardGenerationContextLocator( rootClass.getEntityName() );
    final CompositeNestedGeneratedValueGenerator generator = new CompositeNestedGeneratedValueGenerator( locator );

    Iterator itr = getPropertyIterator();
    while ( itr.hasNext() ) {
      final Property property = (Property) itr.next();
      if ( property.getValue().isSimpleValue() ) {
        final SimpleValue value = (SimpleValue) property.getValue();

        if ( DEFAULT_ID_GEN_STRATEGY.equals( value.getIdentifierGeneratorStrategy() ) ) {
          // skip any 'assigned' generators, they would have been handled by
          // the StandardGenerationContextLocator
          continue;
        }

        final IdentifierGenerator valueGenerator = value.createIdentifierGenerator(
            identifierGeneratorFactory,
            dialect,
            defaultCatalog,
            defaultSchema,
            rootClass
        );
        generator.addGeneratedValuePlan(
            new ValueGenerationPlan(
                property.getName(),
                valueGenerator,
                injector( property, attributeDeclarer )
            )
View Full Code Here

TOP

Related Classes of org.hibernate.id.CompositeNestedGeneratedValueGenerator$GenerationContextLocator

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.