Top "Sequence" questions

A sequence is an ordered list of objects (or events).

Calling next value of a sequence in jpa

I have a class mapped as an Entity to persist it in a database. I have an id field as …

java hibernate jpa sequence nextval
Sequence does not reset after truncating the table

I use SELECT lastval() to get wrong serial id after truncated the table. when I truncate the table, I use …

postgresql sequence
Oracle 9 - Resetting Sequence to match the state of the table

I have a sequence used to seed my (Integer based) primary keys in an oracle table. It appears this sequence …

oracle sequence oracle9i
Clojure: cons (seq) vs. conj (list)

I know that cons returns a seq and conj returns a collection. I also know that conj "adds" the item …

collections clojure sequence
Deleting every n-th row in a dataframe

How can I delete every n-th row from a dataframe in R?

r sequence dataframe rows
Generating an alphabetic sequence in Java

I'm looking for a way of generating an alphabetic sequence: A, B, C, ..., Z, AA, AB, AC, ..., ZZ. Can anyone …

java collections sequence guava alphabetical
How to append or prepend on a Scala mutable.Seq

There's something I don't understand about Scala's collection.mutable.Seq. It describes the interface for all mutable sequences, yet I …

scala sequence scala-collections mutable
Exception: Could not synchronize database state with session

I have an web application developed on spring and hibernate 3.0 and deployed on apache tomcat 6. I am getting below error …

hibernate session sequence unique-constraint ora-00001
Best way to determine if a sequence is in another sequence?

This is a generalization of the "string contains substring" problem to (more) arbitrary types. Given an sequence (such as a …

python algorithm sequence
Compute the minimal number of swaps to order a sequence

I'm working on sorting an integer sequence with no identical numbers (without loss of generality, let's assume the sequence is …

algorithm sorting sequence graph-theory