File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed
hibernate-core/src/main/java/org/hibernate/id/enhanced Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 9898 * <tr>
9999 * <td>{@value #VALUE_COLUMN_PARAM}</td>
100100 * <td>{@value #DEF_VALUE_COLUMN}</td>
101- * <td>The name of column which holds the sequence value for the given segment</td>
101+ * <td>The name of the column which holds the sequence value for the given segment</td>
102102 * </tr>
103103 * </table>
104104 *
Original file line number Diff line number Diff line change 5858/**
5959 * An enhanced version of table-based id generation.
6060 * <p>
61- * Unlike the simplistic legacy one (which was only ever intended for subclassing
62- * support) we "segment" the table into multiple values. Thus, a single table can
63- * actually serve as the persistent storage for multiple independent generators. One
64- * approach would be to segment the values by the name of the entity for which we are
65- * performing generation, which would mean that we would have a row in the generator
66- * table for each entity name. Or any configuration really; the setup is very flexible.
61+ * A single table may serve as the persistent storage for multiple independent generators.
62+ * For example, we might segment the generated values by the name of the entity for which
63+ * we are generation ids. This, we would have a row in the generator table for each entity
64+ * name. Other approaches are also possible.
6765 * <p>
6866 * By default, we use a single row for all generators (the {@value #DEF_SEGMENT_VALUE}
6967 * segment). The configuration parameter {@value #CONFIG_PREFER_SEGMENT_PER_ENTITY} can
8482 * <tr>
8583 * <td>{@value #VALUE_COLUMN_PARAM}</td>
8684 * <td>{@value #DEF_VALUE_COLUMN}</td>
87- * <td>The name of column which holds the sequence value for the given segment</td>
85+ * <td>The name of the column which holds the sequence value for the given segment</td>
8886 * </tr>
8987 * <tr>
9088 * <td>{@value #SEGMENT_COLUMN_PARAM}</td>
You can’t perform that action at this time.
0 commit comments