Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

native insert query in jpa repository

@Repository
@Transactional
public interface FruitsRepository {
   @Modifying
   @Query(value = "insert into fruits_table (id, name) VALUES (?1, ?2)", nativeQuery = true)
   void insertIntoFruitsTable(long id, String name);
}
Comment

PREVIOUS NEXT
Code Example
Java :: java stream get all max values 
Java :: passing array by reference java 
Java :: android double click to exit 
Java :: find minimum in array java 
Java :: java math power 
Java :: synchronized java 
Java :: java system.out.println 
Java :: how to find absolute difference in java 
Java :: can interface have attributes java 
Java :: java split string array 
Java :: java string to byte array utf8 
Java :: blurview android github 
Java :: sorting java 
Java :: set textview text android java 
Java :: android java Check Wifi Connection 
Java :: setbackground color hexadecimal android 
Java :: java substring after character 
Java :: java.lang.arrayindexoutofboundsexception: index 3 out of bounds for length 3 
Java :: retrieving parent element from child aWebelement selenium java 
Java :: java what is at 
Java :: check if char is a space java 
Java :: how to update java runtime 
Java :: synchronized block java 
Java :: java print default options 
Java :: array of number arrays java 
Java :: advantages of exception handling in java 
Java :: java leap years 
Java :: java convert am pm to 24 hour 
Java :: java check string contains uppercase character 
Java :: how to create folder java 
ADD CONTENT
Topic
Content
Source link
Name
7+1 =