Solution :
Add below query annotation
@Query(value="SELECT * FROM programmer WHERE name = ?1", nativeQuery = true)
instead of
@Query("SELECT * FROM programmer WHERE name = ?1")
The bug is not a pain it's the way to learn new things. Solve your bug by taking help from here.
Solution :
Add below query annotation
@Query(value="SELECT * FROM programmer WHERE name = ?1", nativeQuery = true)
instead of
@Query("SELECT * FROM programmer WHERE name = ?1")
Solution:
Keep your earlier jdbc dependency and add one more dependency, which I have mentioned below -
<dependency>
<groupId>com.oracle.ojdbc</groupId>
<artifactId>orai18n</artifactId>
<version>19.3.0.0</version>
</dependency>
Solution:
Your java(Controller) class is not available in the java source folder. Check, is your java(Controller) class is
inside this path src/main/resources then remove it And create a java source folder
like- main.java. And create Controller class inside that java source folder with package
Solution:
Add bellows two lines before -vmargs Line of eclipse.ini(C:\Users\roman\Desktop\eclipse\eclipse.ini) file
-vm
C:\Java\JDK\1.8\bin\javaw.exe ( Use your java installation path of javaw.exe)
Solution:
The syntax is not correct for executing a database query, function, procedure, or package. Make corrections to your query.
Like -
CallableStatement call = con.prepareCall("{call docnumber_generation(?,?,?,?,?,?,?,?)}");
// Here inside string 'call' is important to call the procedure
Solution : Add below query annotation @Query(value="SELECT * FROM programmer WHERE name = ?1", nativeQuery = true ) instead of ...