@@ -52,43 +52,45 @@ default int forEachJdbcType(IndexedConsumer<JdbcMapping> action) {
52
52
}
53
53
54
54
/**
55
- * @asciidoc Breaks down a value of `J` into its simple pieces. E.g., an embedded
55
+ * Breaks down a value of {@code J} into its simple pieces. E.g., an embedded
56
56
* value gets broken down into an array of its attribute state; a basic
57
57
* value converts to itself; etc.
58
58
* <p>
59
59
* Generally speaking, this is the form in which entity state is kept relative to a
60
- * Session via `EntityEntry`.
61
- * @Entity class Person {
62
- * @Id Integer id;
63
- * @Embedded Name name;
64
- * int age;
60
+ * Session via {@code EntityEntry}.
61
+ * <p>
62
+ * <pre>
63
+ * @Entity class Person {
64
+ * @Id Integer id;
65
+ * @Embedded Name name;
66
+ * int age;
65
67
* }
66
- * @Embeddable class Name {
67
- * String familiarName;
68
- * String familyName;
68
+ *
69
+ * @Embeddable class Name {
70
+ * String familiarName;
71
+ * String familyName;
69
72
* }
70
- * ````
73
+ * </pre>
71
74
* <p>
72
- * At the top-level, we would want to disassemble a `Person` value so we'd ask the
73
- * `Bindable` for the `Person` entity to disassemble. Given a Person value:
75
+ * At the top level, we would want to disassemble a {@code Person} value, so we'd
76
+ * ask the {@code Bindable} for the {@code Person} entity to disassemble. Given a
77
+ * {@code Person} value:
74
78
* <p>
75
- * ````
79
+ * <pre>
76
80
* Person( id=1, name=Name( 'Steve', 'Ebersole' ), 28 )
77
- * ````
81
+ * </pre>
78
82
* <p>
79
- * this disassemble would result in a multi-dimensional array:
83
+ * this disassemble would result in a multidimensional array:
80
84
* <p>
81
- * ````
85
+ * <pre>
82
86
* [ ["Steve", "Ebersole"], 28 ]
83
- * ````
87
+ * </pre>
84
88
* <p>
85
89
* Note that the identifier is not part of this disassembled state. Note also
86
90
* how the embedded value results in a sub-array.
91
+ *
87
92
* @see org.hibernate.engine.spi.EntityEntry
88
93
* <p>
89
- * As an example, consider the following domain model:
90
- * <p>
91
- * ````
92
94
*/
93
95
Object disassemble (Object value , SharedSessionContractImplementor session );
94
96
@@ -103,20 +105,18 @@ default int forEachJdbcType(IndexedConsumer<JdbcMapping> action) {
103
105
void addToCacheKey (MutableCacheKeyBuilder cacheKey , Object value , SharedSessionContractImplementor session );
104
106
105
107
/**
106
- * @asciidoc
107
- *
108
108
* Visit each constituent JDBC value over the result from {@link #disassemble}.
109
- *
109
+ * <p>
110
110
* Given the example in {@link #disassemble}, this results in the consumer being
111
111
* called for each simple value. E.g.:
112
- *
113
- * ````
112
+ * <p>
113
+ * <pre>
114
114
* consumer.consume( "Steve" );
115
115
* consumer.consume( "Ebersole" );
116
116
* consumer.consume( 28 );
117
- * ````
118
- *
119
- * Think of it as breaking the multi-dimensional array into a visitable flat array.
117
+ * </pre>
118
+ * <p>
119
+ * Think of it as breaking the multidimensional array into a visitable flat array.
120
120
* Additionally, it passes through the values {@code X} and {@code Y} to the consumer.
121
121
*/
122
122
default <X , Y > int forEachDisassembledJdbcValue (
0 commit comments