
OpenAPI: format date with specific pattern in Java
Format date with specific pattern in Java

java.lang.UnsupportedOperationException at java.base/java.util.InmutableCollections.uoe
Problem: Junit returns next error: Solution: Instead of List.of() or Array.asList() or… you have to use new ArrayList(Arrays.asList(…))...

Enum does not have an accessible constructor
Problem: Mapstruct mapper returns next error: Solution: Maybe there is some data that depends on other mapper, if...

No read accessor found for property in target type
Problem: When you are trying to map nested objects and you are using Mapstruct and Lombok and it...

JPA: Could not resolve target entity
Problem: When you are trying to use @Query and returns next error: Solution: You have to use as...

JUnit: java.lang.NullPointerException: Cannot invoke “[Ljava.lang.Class;.clone()” because ” .parameterTypes” is null
Problem: If you are launching JUnit test and returns next error: Solution: The problem is that you are...

JPA: jakarta.persistence.TransactionRequiredException: Executing an update/delete query org.hibernate.internal.AbstractSharedSessionContract.checkTransactionNeededForUpdateOperation
Problem: When you are using JPA and returns next error: Solution: Just add @Transactional at class level of...

Mapstruct: Mapping of Enums via @Mapping is removed. Please use @ValueMapping instead!
Mapping of Enums via @Mapping is removed. Please use @ValueMapping instead!

JUnit: This exception may occur if matchers are combined with raw values
This exception may occur if matchers are combined with raw values

JPA: Inferred type ‘S’ for type parameter ‘S’ is not within its bound
Problem: In Java, using JPA returns next error: Solution: check the type of the object that you are...