Primary keys for entities are generated using sequences.