jakarta.persistence.Basic attributeorg.hibernate.type.BasicType | Modifier and Type | Method and Description |
|---|---|
| public default void | addToCacheKey(MutableCacheKeyBuilder
the MutableCacheKey used to add the disassembled value and the hashCode cacheKey, Object the value to disassemble value, SharedSessionContractImplementor the SharedSessionContractImplementor session)Implements org. |
| public default Object | disassemble(Object value, SharedSessionContractImplementor session)
Implements org. J into its simple pieces.
|
| public default JdbcMapping | getJdbcMapping(int index)
Overrides default org. Implements org. |
| public JdbcMapping | getJdbcMapping()
Redeclares org. |
| public default int | getJdbcTypeCount()
Overrides default org. |
| public default JdbcMapping |
| addToCacheKey | back to summary |
|---|---|
| public default void addToCacheKey(MutableCacheKeyBuilder cacheKey, Object value, SharedSessionContractImplementor session) Implements org. Doc from org. Add to the MutableCacheKey the values obtained disassembling the value and the hasCode generated from the disassembled value.
| |
| disassemble | back to summary |
|---|---|
| public default Object disassemble(Object value, SharedSessionContractImplementor session) Implements org. Doc from org. Breaks down a value of
Generally speaking, this is the form in which entity state is kept relative to a
Session via
@Entity class Person {
@Id Integer id;
@Embedded Name name;
int age;
}
@Embeddable class Name {
String familiarName;
String familyName;
}
At the top level, we would want to disassemble a
Person( id=1, name=Name( 'Steve', 'Ebersole' ), 28 ) this disassemble would result in a multidimensional array:
[ ["Steve", "Ebersole"], 28 ] Note that the identifier is not part of this disassembled state. Note also how the embedded value results in a sub-array.
| |
| getJdbcMapping | back to summary |
|---|---|
| public default JdbcMapping getJdbcMapping(int index) Overrides default org. Implements org.
| |
| getJdbcMapping | back to summary |
|---|---|
| public JdbcMapping getJdbcMapping() Redeclares org. Doc from org. Anything that is expressible at the SQL AST level would be of basic type. | |
| getJdbcTypeCount | back to summary |
|---|---|
| public default int getJdbcTypeCount() Overrides default org. Doc from org. The number of JDBC mappings
| |
| getSingleJdbcMapping | back to summary |
|---|---|
| public default JdbcMapping getSingleJdbcMapping() Overrides default org.
| |