public class BeanValidationListener
extends org.eclipse.persistence.internal.jpa.metadata.listeners.BeanValidationListener
Since the existing bean validation listener incorrectly uses preUpdate instead of preUpdateWithChanges, this class redirects the preUpdateWithChanges to preUpdate.
Constructor and Description |
---|
BeanValidationListener(javax.validation.ValidatorFactory validatorFactory,
Class<?>[] groupPrePersit,
Class<?>[] groupPreUpdate,
Class<?>[] groupPreRemove) |
Modifier and Type | Method and Description |
---|---|
void |
preUpdate(org.eclipse.persistence.descriptors.DescriptorEvent event) |
void |
preUpdateWithChanges(org.eclipse.persistence.descriptors.DescriptorEvent event) |
aboutToUpdate, prePersist, preRemove
public void preUpdate(org.eclipse.persistence.descriptors.DescriptorEvent event)
preUpdate
in interface org.eclipse.persistence.descriptors.DescriptorEventListener
preUpdate
in class org.eclipse.persistence.descriptors.DescriptorEventAdapter
public void preUpdateWithChanges(org.eclipse.persistence.descriptors.DescriptorEvent event)
preUpdateWithChanges
in interface org.eclipse.persistence.descriptors.DescriptorEventListener
preUpdateWithChanges
in class org.eclipse.persistence.descriptors.DescriptorEventAdapter
Copyright © 2019 SAP SE. All rights reserved.