Код: Выделить всё
@Query(value = """
SELECT .......
""", nativeQuery = true)
ProfileView findByCustomerId(......);
Код: Выделить всё
public interface ProfileView {
String getRreference();
}
Код: Выделить всё
final ProfileView result = profileRepository.findByCustomerId(......);
final String profile = result.getReference();
Код: Выделить всё
java.lang.NullPointerException: Cannot invoke "com.ProfileView.getReference()" because "result" is null
Подробнее здесь: https://stackoverflow.com/questions/791 ... pty-result
Мобильная версия