From f45e7b9b9bc06f0b11457d99cf9f3e2d15140de2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Nicoll?= Date: Mon, 22 Apr 2024 14:49:17 +0200 Subject: [PATCH] Relax scope of DataIntegrityViolationException This commit updates the Javadoc of DataIntegrityViolationException to broaden its scope as it was too specific before. Closes gh-32631 --- .../springframework/dao/DataIntegrityViolationException.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spring-tx/src/main/java/org/springframework/dao/DataIntegrityViolationException.java b/spring-tx/src/main/java/org/springframework/dao/DataIntegrityViolationException.java index 21e36f4720c..0ec2d95ab9f 100644 --- a/spring-tx/src/main/java/org/springframework/dao/DataIntegrityViolationException.java +++ b/spring-tx/src/main/java/org/springframework/dao/DataIntegrityViolationException.java @@ -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. @@ -19,7 +19,8 @@ package org.springframework.dao; import org.springframework.lang.Nullable; /** - * 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.