OgmTableGenerator (used for sequence generation) does pass a RowKey made of the table name (hosting sequences), column name of the sequence identifier (in this table) and the column value corresponding to the sequence identifier
Default values are:
- table name: hibernate_sequences
- sequence id name: sequence_name
- sequence id value: default
OgmTableGenerator also defines the column name where the sequence value should be stored. Default value for that column is next_val.
Should GridDialect.nextValue pass along the column name informations so that the dialect could reuse the same names?
Today MongoDB uses _id for the sequence id name and MongoDBDialect.SEQUENCE_VALUE for the sequence value column name.
Likewise, Neo4J uses ad-hoc column name for the sequence id and sequence value
Neo4jSequenceGenerator.ID_SEQUENCE_PROPERTY and Neo4jSequenceGenerator.VALUE_SEQUENCE_PROPERTY.
|