Relax scope of DataIntegrityViolationException

This commit updates the Javadoc of DataIntegrityViolationException to
broaden its scope as it was too specific before.

Closes gh-32686
This commit is contained in:
Stéphane Nicoll
2024-04-22 14:53:06 +02:00
parent 5c9f364352
commit 1fb179b057

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2022 the original author or authors.
* Copyright 2002-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -17,7 +17,8 @@
package org.springframework.dao;
/**
* Exception thrown when an attempt to insert or update data
* Exception thrown when an attempt to execute an SQL statement fails to map
* the given data, typically but no limited to an insert or update data
* results in violation of an integrity constraint. Note that this
* is not purely a relational concept; integrity constraints such
* as unique primary keys are required by most database types.