Examples of generatorKey()


Examples of org.hibernate.ogm.id.impl.OgmSequenceGenerator.generatorKey()

      OgmSequenceGenerator sequenceGenerator = (OgmSequenceGenerator) identifierGenerator;
      addSequence( sequenceGenerator.generatorKey(), sequenceGenerator.getSegmentValue(), sequenceGenerator.getInitialValue() );
    }
    else if ( identifierGenerator instanceof OgmTableGenerator ) {
      OgmTableGenerator sequenceGenerator = (OgmTableGenerator) identifierGenerator;
      addSequence( sequenceGenerator.generatorKey(), sequenceGenerator.getSegmentValue(), sequenceGenerator.getInitialValue() );
    }
  }

  /**
   * Ex.:
 
View Full Code Here

Examples of org.hibernate.ogm.id.impl.OgmTableGenerator.generatorKey()

      OgmSequenceGenerator sequenceGenerator = (OgmSequenceGenerator) identifierGenerator;
      addUniqueConstraint( sequenceGenerator.generatorKey() );
    }
    else if ( identifierGenerator instanceof OgmTableGenerator ) {
      OgmTableGenerator sequenceGenerator = (OgmTableGenerator) identifierGenerator;
      addUniqueConstraint( sequenceGenerator.generatorKey() );
    }
  }

  private void addUniqueConstraint(Object generatorKey) {
    Label generatorKeyLabel = generatorKeyLabel( generatorKey );
View Full Code Here

Examples of org.hibernate.ogm.id.impl.OgmTableGenerator.generatorKey()

      OgmSequenceGenerator sequenceGenerator = (OgmSequenceGenerator) identifierGenerator;
      addSequence( sequenceGenerator.generatorKey(), sequenceGenerator.getSegmentValue(), sequenceGenerator.getInitialValue() );
    }
    else if ( identifierGenerator instanceof OgmTableGenerator ) {
      OgmTableGenerator sequenceGenerator = (OgmTableGenerator) identifierGenerator;
      addSequence( sequenceGenerator.generatorKey(), sequenceGenerator.getSegmentValue(), sequenceGenerator.getInitialValue() );
    }
  }

  /**
   * Ex.:
 
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.