CreationTimestamp, no longer used.
| Modifier and Type | Field and Description |
|---|---|
| private ValueGenerator | generator
Deprecated
as a consequence of
ValueGenerator being deprecated.
|
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | getDatabaseGeneratedReferencedColumnValue()
Implements org. |
| public String | getDatabaseGeneratedReferencedColumnValue(Dialect
The SQL dialect, allowing generation of an expression
in dialect-specific SQL. dialect)Overrides default org. |
| public GenerationTiming | getGenerationTiming()
Implements org.
Deprecated
as a consequence of
Specifies that the property value is generated:
GenerationTiming being deprecated.
|
| public ValueGenerator | getValueGenerator()
Implements org.
Deprecated
as a consequence of
Obtain the Java value generator, if the value is generated in
Java, or return ValueGenerator being deprecated.
null if the value is generated by the database.
|
| public void | initialize(CreationTimestamp
an instance of the strategy's annotation type. Typically,
implementations will retrieve the annotation's attribute
values and store them in fields. annotation, Class<?> the type of the property annotated with the generator annotation. propertyType)Implements org. |
| public boolean | referenceColumnInSql()
Implements org. insert or update statement, in the case where the value is generated
by the database.
|
| generator | back to summary |
|---|---|
| private ValueGenerator<?> generator
Deprecated as a consequence of | |
| CreationTimestampGeneration | back to summary |
|---|---|
| public CreationTimestampGeneration() | |
| getDatabaseGeneratedReferencedColumnValue | back to summary |
|---|---|
| public String getDatabaseGeneratedReferencedColumnValue() Implements org. Doc from org. A SQL expression indicating how to calculate the generated value when the property value is generated in the database and the mapped column is included in the SQL statement. The SQL expression might be:
When the property value is generated in Java, this method is not called, and its value is
implicitly the string | |
| getDatabaseGeneratedReferencedColumnValue | back to summary |
|---|---|
| public String getDatabaseGeneratedReferencedColumnValue(Dialect dialect) Overrides default org. Doc from org. A SQL expression indicating how to calculate the generated value when the property value is generated in the database and the mapped column is included in the SQL statement. The SQL expression might be:
When the property value is generated in Java, this method is not called, and its value is
implicitly the string
| |
| getGenerationTiming | back to summary |
|---|---|
| public GenerationTiming getGenerationTiming() Implements org. Doc from org. Deprecated as a consequence of Specifies that the property value is generated:
| |
| getValueGenerator | back to summary |
|---|---|
| public ValueGenerator Implements org. Doc from org. Deprecated as a consequence of Obtain the Java value generator, if the value is generated in
Java, or return
| |
| initialize | back to summary |
|---|---|
| public void initialize(CreationTimestamp annotation, Class<?> propertyType) Implements org. Doc from org. Initializes this generation strategy for the given annotation instance.
| |
| referenceColumnInSql | back to summary |
|---|---|
| public boolean referenceColumnInSql() Implements org. Doc from org. Determines if the column whose value is generated is included in the column list of the
SQL
If the value is generated in Java, this method is not called, and so for backward
compatibility with Hibernate 5 it is permitted to return any value. On the other hand,
when a property value is generated in Java, the column certainly must be included in the
column list, and so it's most correct for this method to return
| |