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 98
98
* <tr>
99
99
* <td>{@value #VALUE_COLUMN_PARAM}</td>
100
100
* <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>
102
102
* </tr>
103
103
* </table>
104
104
*
Original file line number Diff line number Diff line change 58
58
/**
59
59
* An enhanced version of table-based id generation.
60
60
* <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.
67
65
* <p>
68
66
* By default, we use a single row for all generators (the {@value #DEF_SEGMENT_VALUE}
69
67
* segment). The configuration parameter {@value #CONFIG_PREFER_SEGMENT_PER_ENTITY} can
84
82
* <tr>
85
83
* <td>{@value #VALUE_COLUMN_PARAM}</td>
86
84
* <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>
88
86
* </tr>
89
87
* <tr>
90
88
* <td>{@value #SEGMENT_COLUMN_PARAM}</td>
You can’t perform that action at this time.
0 commit comments