Module jakarta.data

Class NonUniqueResultException

java.lang.Object
All Implemented Interfaces:
Serializable

public class NonUniqueResultException extends DataException
This exception is raised when execution of a repository method with a singular return type finds multiple results. This error may be circumvented using the findFirst... method name pattern or by supplying Limit.of(1) as a parameter to explicitly request only the first result.
See Also: