private void createSequences(Collection<Sequence> sequences, SchemaDescriptor schemaDescriptor, Store store) {
        for (Sequence sequence : sequences) {
            SequenceDesriptor sequenceDesriptor = store.create(SequenceDesriptor.class);
            sequenceDesriptor.setName(sequence.getName());
            sequenceDesriptor.setIncrement(sequence.getIncrement());
            sequenceDesriptor.setMinimumValue(sequence.getMinimumValue().longValue());
            sequenceDesriptor.setMaximumValue(sequence.getMaximumValue().longValue());
            sequenceDesriptor.setCycle(sequence.isCycle());
            schemaDescriptor.getSequences().add(sequenceDesriptor);
        }
    }
private void createSequences ( Collection < Sequence > sequences , SchemaDescriptor schemaDescriptor , Store store ) { for ( Sequence sequence : sequences ) { SequenceDesriptor sequenceDesriptor = store . create ( SequenceDesriptor . class ) ; sequenceDesriptor . setName ( sequence . getName ( ) ) ; sequenceDesriptor . setIncrement ( sequence . getIncrement ( ) ) ; sequenceDesriptor . setMinimumValue ( sequence . getMinimumValue ( ) . longValue ( ) ) ; sequenceDesriptor . setMaximumValue ( sequence . getMaximumValue ( ) . longValue ( ) ) ; sequenceDesriptor . setCycle ( sequence . isCycle ( ) ) ; schemaDescriptor . getSequences ( ) . add ( sequenceDesriptor ) ; } }
Add the sequences of a schema to the schema descriptor.

@param sequences        The sequences.
@param schemaDescriptor The schema descriptor.
@param store            The store.