Package org.hibernate.engine.internal
Class Nullability
java.lang.Object
org.hibernate.engine.internal.Nullability
Implements the algorithm for validating property values for illegal null values.
For example, a field or property does not accept null values if it is mapped
@Basic(optional=false)
.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Nullability
(SharedSessionContractImplementor session, Nullability.NullabilityCheckType checkType) -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkNullability
(Object[] values, EntityPersister persister) Check nullability of the entity propertiesvoid
checkNullability
(Object[] values, EntityPersister persister, boolean isUpdate) Deprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Details
-
Method Details
-
checkNullability
@Deprecated(forRemoval=true, since="7") public void checkNullability(Object[] values, EntityPersister persister, boolean isUpdate) Deprecated, for removal: This API element is subject to removal in a future version.Check nullability of the entity properties- Parameters:
values
- entity propertiespersister
- class persisterisUpdate
- whether it is intended to be updated or saved- Throws:
PropertyValueException
- Break the nullability of one propertyHibernateException
- error while getting Component values
-
checkNullability
Check nullability of the entity properties- Parameters:
values
- entity propertiespersister
- class persister- Throws:
PropertyValueException
- Break the nullability of one propertyHibernateException
- error while getting Component values
-
checkNullability(Object[], EntityPersister)