Package org.hibernate.tuple
Interface ValueGenerator<T>
-
@Deprecated(since="6.2", forRemoval=true) public interface ValueGenerator<T>
Deprecated, for removal: This API element is subject to removal in a future version.Replaced byGenerator
Defines a generator for in-VM generation of (non-identifier) attribute values.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description T
generateValue(Session session, Object owner)
Deprecated, for removal: This API element is subject to removal in a future version.Generate the value.default T
generateValue(Session session, Object owner, Object currentValue)
Deprecated, for removal: This API element is subject to removal in a future version.Generate the value.
-
-
-
Method Detail
-
generateValue
T generateValue(Session session, Object owner)
Deprecated, for removal: This API element is subject to removal in a future version.Generate the value.- Parameters:
session
- The Session from which the request originates.owner
- The instance of the object owning the attribute for which we are generating a value.- Returns:
- The generated value
-
generateValue
default T generateValue(Session session, Object owner, Object currentValue)
Deprecated, for removal: This API element is subject to removal in a future version.Generate the value.- Parameters:
session
- The Session from which the request originates.owner
- The instance of the object owning the attribute for which we are generating a value.currentValue
- The current value assigned to the property- Returns:
- The generated value
-
-